diff options
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 884c6e95f..d9b82b2ed 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -85,6 +85,9 @@ | |||
85 | # define UNUSED_PARAM_RESULT | 85 | # define UNUSED_PARAM_RESULT |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | /* used by unit test machinery to run registration functions before calling main() */ | ||
89 | #define INIT_FUNC __attribute__ ((constructor)) | ||
90 | |||
88 | /* -fwhole-program makes all symbols local. The attribute externally_visible | 91 | /* -fwhole-program makes all symbols local. The attribute externally_visible |
89 | * forces a symbol global. */ | 92 | * forces a symbol global. */ |
90 | #if __GNUC_PREREQ(4,1) | 93 | #if __GNUC_PREREQ(4,1) |