diff options
author | Morgan Deters <mdeters@gmail.com> | 2009-12-05 00:40:57 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2009-12-05 00:40:57 +0000 |
commit | 200f36785acf7aac3e7e230795ea7ffdb6b1ed64 (patch) | |
tree | f75b5f5ddab8a479b9ed80340f102cfd1d28f882 /src/include | |
parent | 49c66a500e7252c58e8967d3d9d38d53a95a5318 (diff) |
more build system work
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cvc4_config.h | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/src/include/cvc4_config.h b/src/include/cvc4_config.h index ccc07b40a..95fac9aaa 100644 --- a/src/include/cvc4_config.h +++ b/src/include/cvc4_config.h @@ -10,35 +10,27 @@ ** [[ Add file-specific comments here ]] **/ -#ifdef __BUILDING_CVC4LIB - -# if defined _WIN32 || defined __CYGWIN__ -# ifdef BUILDING_DLL -# ifdef __GNUC__ -# define CVC4_PUBLIC __attribute__((dllexport)) -# else /* ! __GNUC__ */ -# define CVC4_PUBLIC __declspec(dllexport) -# endif /* __GNUC__ */ -# else /* BUILDING_DLL */ -# ifdef __GNUC__ -# define CVC4_PUBLIC __attribute__((dllimport)) -# else /* ! __GNUC__ */ -# define CVC4_PUBLIC __declspec(dllimport) -# endif /* __GNUC__ */ -# endif /* BUILDING_DLL */ -# else /* !( defined _WIN32 || defined __CYGWIN__ ) */ -# if __GNUC__ >= 4 -# define CVC4_PUBLIC __attribute__ ((visibility("default"))) -# else /* !( __GNUC__ >= 4 ) */ -# define CVC4_PUBLIC -# endif /* __GNUC__ >= 4 */ -# endif /* defined _WIN32 || defined __CYGWIN__ */ - -#else /* ! __BUILDING_CVC4LIB */ - -# define CVC4_PUBLIC - -#endif /* __BUILDING_CVC4LIB */ +#if defined _WIN32 || defined __CYGWIN__ +# ifdef BUILDING_DLL +# ifdef __GNUC__ +# define CVC4_PUBLIC __attribute__((dllexport)) +# else /* ! __GNUC__ */ +# define CVC4_PUBLIC __declspec(dllexport) +# endif /* __GNUC__ */ +# else /* BUILDING_DLL */ +# ifdef __GNUC__ +# define CVC4_PUBLIC __attribute__((dllimport)) +# else /* ! __GNUC__ */ +# define CVC4_PUBLIC __declspec(dllimport) +# endif /* __GNUC__ */ +# endif /* BUILDING_DLL */ +#else /* !( defined _WIN32 || defined __CYGWIN__ ) */ +# if __GNUC__ >= 4 +# define CVC4_PUBLIC __attribute__ ((visibility("default"))) +# else /* !( __GNUC__ >= 4 ) */ +# define CVC4_PUBLIC +# endif /* __GNUC__ >= 4 */ +#endif /* defined _WIN32 || defined __CYGWIN__ */ #define EXPECT_TRUE(x) __builtin_expect( (x), true) #define EXPECT_FALSE(x) __builtin_expect( (x), false) |