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:
ChrisDill
2018-09-26 15:19:54 +01:00
committed by GitHub
parent 72f9950ce9
commit f43a7bdddf

View File

@ -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