git » libfiu » commit 1862bed

preload/posix: Lift the platform restriction for constructor priorities

author Alberto Bertogli
2010-03-21 18:17:19 UTC
committer Alberto Bertogli
2010-03-21 18:17:19 UTC
parent 2bfeeff936ac263c9e2abc85758a7d64c9c8a91c

preload/posix: Lift the platform restriction for constructor priorities

According to gcc's documentation, constructor priorities are supported on all
platforms, so lift the Linux-only restriction.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/codegen.h +1 -1

diff --git a/preload/posix/codegen.h b/preload/posix/codegen.h
index 5384e2e..0999159 100644
--- a/preload/posix/codegen.h
+++ b/preload/posix/codegen.h
@@ -21,7 +21,7 @@ extern int __thread _fiu_called;
  *  - clang as of 2010-03-14
  */
 #if \
-	( (defined __linux__) && (defined __GNUC__) \
+	( (defined __GNUC__) \
 		&& __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 ) \
 	|| (defined __clang__)
   #define constructor_attr(prio) __attribute__((constructor(prio)))