We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e4f7b9 commit 0e497eaCopy full SHA for 0e497ea
src/include/port/win32.h
@@ -49,9 +49,11 @@
49
#endif
50
51
/*
52
- * Under MSVC, functions exported by a loadable module must be marked
53
- * "dllexport". Other compilers don't need that.
+ * Functions exported by a loadable module must be marked "dllexport".
+ *
54
+ * While mingw would otherwise fall back to
55
+ * __attribute__((visibility("default"))), that appears to only work as long
56
+ * as no symbols are declared with __declspec(dllexport). But we can end up
57
+ * with some, e.g. plpython's Py_Init.
58
*/
-#ifdef _MSC_VER
59
#define PGDLLEXPORT __declspec (dllexport)
-#endif
0 commit comments