Commits

Ondřej Surý  committed 024d6ef

Add back 'extern' keyword for header declarations for GCC builds

  • Participants
  • Parent commits 4eb4e29

Comments (0)

Files changed (1)

 /* http://gcc.gnu.org/wiki/Visibility */
 #ifdef NONDLL
 # ifdef HAVE_VISIBILITY
-#  define BGD_DECLARE(rt) __attribute__ ((visibility ("default"))) rt
+#  define BGD_DECLARE(rt) __attribute__ ((visibility ("default"))) extern rt
 #  define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default")))
 #  define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden")))
 # else
-#  define BGD_DECLARE(rt) rt
+#  define BGD_DECLARE(rt) extern rt
 # endif
 #else
 # ifdef BGDWIN32