Commit a21672c893b4bf6ea6c3a20cfe8d559211a141e4

Ryan C. Gordon 2015-05-26T16:25:22

Fix fallback define for DECLSPEC for non-Windows platforms. Looks like it was a copy/paste error? GCC doesn't support visibility attributes until gcc4, so just make it blank. Fixes Bugzilla #2720.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/begin_code.h b/include/begin_code.h
index 4b27976..c032400 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -64,8 +64,6 @@
 # else
 #  if defined(__GNUC__) && __GNUC__ >= 4
 #   define DECLSPEC __attribute__ ((visibility("default")))
-#  elif defined(__GNUC__) && __GNUC__ >= 2
-#   define DECLSPEC __declspec(dllexport)
 #  else
 #   define DECLSPEC
 #  endif