Skip to content

Commit 332dd24

Browse files
committed
Merge pull request #1656 from pguyot/w19/fix-smp-cpp
Fix compilation of smp.h with C++ and disabled SMP These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents f660ded + 7be4111 commit 332dd24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libAtomVM/smp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ bool smp_is_main_thread(GlobalContext *glb);
273273
#define SMP_RWLOCK_WRLOCK(lock) smp_rwlock_wrlock(lock)
274274
#define SMP_RWLOCK_UNLOCK(lock) smp_rwlock_unlock(lock)
275275

276+
#ifdef __cplusplus
277+
}
278+
#endif
279+
276280
#else
277281

278282
#define SMP_SPINLOCK_LOCK(spinlock)
@@ -287,8 +291,4 @@ bool smp_is_main_thread(GlobalContext *glb);
287291
#define SMP_RWLOCK_UNLOCK(lock)
288292
#endif
289293

290-
#ifdef __cplusplus
291-
}
292-
#endif
293-
294294
#endif

0 commit comments

Comments
 (0)