nappgui-sys 0.2.0

Rust raw bindings to NAppGUI
Documentation
/*
 * NAppGUI Cross-platform C SDK
 * 2015-2025 Francisco Garcia Collado
 * MIT Licence
 * https://nappgui.com/en/legal/license.html
 *
 * File: ogl3d.def
 *
 */

/* OGL3D library import/export */

/* clang-format off */

#if defined(NAPPGUI_SHARED)
    #if defined(NAPPGUI_BUILD_OGL3D_LIB)
        #define NAPPGUI_OGL3D_EXPORT_DLL
    #else
        #define NAPPGUI_OGL3D_IMPORT_DLL
    #endif
#endif

#if defined(__GNUC__)
    #if defined(NAPPGUI_OGL3D_EXPORT_DLL)
        #if defined(_WIN32)
            #define _ogl3d_api __declspec(dllexport)
        #else
            #define _ogl3d_api __attribute__((visibility("default")))
        #endif
        #define GLEW_BUILD
    #else
        #define _ogl3d_api
        #define GLEW_STATIC
    #endif
#elif defined(_MSC_VER)
    #if defined(NAPPGUI_OGL3D_IMPORT_DLL)
        #define _ogl3d_api __declspec(dllimport)
    #elif defined(NAPPGUI_OGL3D_EXPORT_DLL)
        #define _ogl3d_api __declspec(dllexport)
        #define GLEW_BUILD
    #else
        #define _ogl3d_api
        #define GLEW_STATIC
    #endif
#else
    #error Unknown compiler
#endif

/* clang-format on */