mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	gio/tests/resourceplugin.c: Ensure entry points are exported
Ensure that the entry points/symbols are exported on Visual Studio builds as well.
This commit is contained in:
		| @@ -1,3 +1,14 @@ | ||||
| /* | ||||
|  * Ensure the g_io_module_*() symbols are exported | ||||
|  * on all supported compilers without using config.h. | ||||
|  * This must be done before including any GLib headers, | ||||
|  * since GLIB_AVAILABLE_IN_ALL, which is used to mark the | ||||
|  * g_io_module*() symbols, is defined to be _GLIB_EXTERN, | ||||
|  * which must be overriden to export the symbols. | ||||
|  */ | ||||
| #include "modules/symbol-visibility.h" | ||||
| #define _GLIB_EXTERN GLIB_TEST_EXPORT_SYMBOL | ||||
|  | ||||
| #include <gio/gio.h> | ||||
|  | ||||
| void | ||||
|   | ||||
		Reference in New Issue
	
	Block a user