mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Added dllexport to help with binding the library
- Added __declspec(dllexport) when compiled as c without RAYGUI_STATIC defined to test. Not sure if there is a better way but it works for what I need.
This commit is contained in:
@ -108,14 +108,14 @@
|
||||
#include "raylib.h"
|
||||
#endif
|
||||
|
||||
#define RAYGUI_STATIC
|
||||
// #define RAYGUI_STATIC
|
||||
#ifdef RAYGUI_STATIC
|
||||
#define RAYGUIDEF static // Functions just visible to module including this file
|
||||
#else
|
||||
#ifdef __cplusplus
|
||||
#define RAYGUIDEF extern "C" // Functions visible from other files (no name mangling of functions in C++)
|
||||
#else
|
||||
#define RAYGUIDEF extern // Functions visible from other files
|
||||
#define RAYGUIDEF __declspec(dllexport) extern // Functions visible from other files
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user