X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcompat.h;h=1e6fc3d45512aecb23373b0d9d34d43d78cf921c;hb=6c4a6b1753926f7de2cc210bf25d1b3c87c181e9;hp=41ae1bbaa601c3fc43c656896c7d9d3438f77040;hpb=0d95204c9848a56b02a1aca717ddca7f5e60e5a6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/compat.h b/include/compat.h index 41ae1bbaa..1e6fc3d45 100644 --- a/include/compat.h +++ b/include/compat.h @@ -27,10 +27,14 @@ */ #if defined _LIBCPP_VERSION || defined _WIN32 # define TR1NS std +# include # include +# include #else # define TR1NS std::tr1 +# include # include +# include #endif /** @@ -41,7 +45,6 @@ #if defined __clang__ || defined __GNUC__ # define CUSTOM_PRINTF(stringpos, firstpos) __attribute__((format(printf, stringpos, firstpos))) #else -# pragma message ("Warning! CUSTOM_PRINTF() does not work on your compiler!") # define CUSTOM_PRINTF(stringpos, firstpos) #endif @@ -85,7 +88,7 @@ # if defined __GXX_EXPERIMENTAL_CXX0X__ # define HAS_CXX11_VARIADIC_TEMPLATES # endif -#elif _MSC_VER >= 1700 +#elif _MSC_FULL_VER >= 170051025 # define HAS_CXX11_VARIADIC_TEMPLATES #endif @@ -98,7 +101,6 @@ #elif defined _MSC_VER # define DEPRECATED_METHOD(function) __declspec(deprecated) function #else -# pragma message ("Warning! DEPRECATED_METHOD() does not work on your compiler!") # define DEPRECATED_METHOD(function) function #endif @@ -108,8 +110,11 @@ */ #if defined _WIN32 # include "inspircd_win32wrapper.h" +# include "threadengines/threadengine_win32.h" #else +# define ENTRYPOINT int main(int argc, char** argv) +# define DllExport __attribute__ ((visibility ("default"))) +# define CoreExport __attribute__ ((visibility ("default"))) # include -# define DllExport -# define CoreExport +# include "threadengines/threadengine_pthread.h" #endif