Skip to content

Commit b450308

Browse files
committed
FreeBSD: disable PAL_GLOBAL for now (TODO)
1 parent e7265ac commit b450308

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pal/inc/pal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,12 @@ extern "C" {
230230
#endif
231231
#endif
232232

233+
#ifndef __FreeBSD__
233234
#define PAL_GLOBAL __attribute__((init_priority(200)))
235+
#else
236+
/* TODO above macro expansion fails to compile on FreeBSD */
237+
#define PAL_GLOBAL
238+
#endif
234239
/******************* PAL-Specific Entrypoints *****************************/
235240

236241
#define IsDebuggerPresent PAL_IsDebuggerPresent

0 commit comments

Comments
 (0)