Skip to content

Commit d498447

Browse files
alyxaaronmdjones
authored andcommitted
Sun Studio CC supports this, let it exist
Closes #47
1 parent 8d8e3fd commit d498447

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libmowgli/platform/constructor.h

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
static void func(void) __attribute__((constructor, flatten)); \
5151
static void func(void)
5252
# endif
53+
#elif defined __SUNPRO_C || defined __SUNPRO_CC
54+
# define MOWGLI_BOOTSTRAP_FUNC(func) \
55+
static void func(void) __attribute__((constructor)); \
56+
static void func(void)
5357
#else
5458
# error MOWGLI_BOOTSTRAP_FUNC not implemented for your platform :(
5559
#endif

0 commit comments

Comments
 (0)