]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/compat.h
m_alias Use equal_range() when searching for aliases
[user/henk/code/inspircd.git] / include / compat.h
index 1cdad06c20a76ba4f9178549f52df4b9bbdfe76e..fa75cd75434b228d8d96ed350acc509d7142cc51 100644 (file)
@@ -41,7 +41,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
 
@@ -98,7 +97,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
 
 #else
 # include <unistd.h>
 # define ENTRYPOINT int main(int argc, char** argv)
-# define DllExport
-# define CoreExport
+# define DllExport __attribute__ ((visibility ("default")))
+# define CoreExport __attribute__ ((visibility ("default")))
 #endif