mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
REviewed functions definition modifiers
This commit is contained in:
21
src/raygui.h
21
src/raygui.h
@ -108,18 +108,23 @@
|
|||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// #define RAYGUI_STATIC
|
#if defined(RAYGUI_IMPLEMENTATION)
|
||||||
#ifdef RAYGUI_STATIC
|
#if defined(_WIN32) && defined(BUILD_LIBTYPE_SHARED)
|
||||||
#define RAYGUIDEF static // Functions just visible to module including this file
|
#define RAYGUIDEF __declspec(dllexport) extern // We are building raygui as a Win32 shared library (.dll).
|
||||||
#else
|
#elif defined(_WIN32) && defined(USE_LIBTYPE_SHARED)
|
||||||
#ifdef __cplusplus
|
#define RAYGUIDEF __declspec(dllimport) // We are using raygui as a Win32 shared library (.dll)
|
||||||
#define RAYGUIDEF extern "C" // Functions visible from other files (no name mangling of functions in C++)
|
|
||||||
#else
|
#else
|
||||||
#define RAYGUIDEF __declspec(dllexport) extern // Functions visible from other files
|
#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
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(RAYGUI_STATIC)
|
||||||
|
#define RAYGUIDEF static // Functions just visible to module including this file
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h> // Required for: atoi()
|
#include <stdlib.h> // Required for: atoi()
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Defines and Macros
|
// Defines and Macros
|
||||||
|
|||||||
Reference in New Issue
Block a user