Skip to content

Commit 969c363

Browse files
committed
fix for mulle-core
1 parent f16088a commit 969c363

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/mulle-thread-linkage.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,19 @@
3838
// but you can live without it in .a
3939
unsigned long __mulle_thread_version__ = 0x0000;
4040

41-
// we include this, if we need it
42-
41+
// we include mintomic, if we need it
42+
//
43+
// if we are building with mulle-core this file is in "src/mulle-thread" and
44+
// "mintomic_gcc.c" is in "mintomic/mintomic_gcc.c" -> "../../mintomic"
45+
//
46+
// if we are building alone, this file is in "src" and "mintomic_gcc.c" is
47+
// in "mintomic/src/mintomic/mintomic_gcc.c" "../mintomic/src/mintomic"
48+
//
4349
#if __STDC_VERSION__ < 201112L || defined( __STDC_NO_ATOMICS__)
44-
# include "../mintomic/src/mintomic/mintomic_gcc.c"
50+
// variable defined by Executable.cmake
51+
# ifdef MULLE__CORE_BUILD
52+
# include "../../mintomic/mintomic_gcc.c"
53+
# else
54+
# include "../mintomic/src/mintomic/mintomic_gcc.c"
55+
# endif
4556
#endif

0 commit comments

Comments
 (0)