/*
 * NAppGUI Cross-platform C SDK
 * 2015-2024 Francisco Garcia Collado
 * MIT Licence
 * https://nappgui.com/en/legal/license.html
 *
 * File: draw2d.def
 *
 */

/* Draw2d library import/export */

/* clang-format off */

#if defined(NAPPGUI_SHARED)
    #if defined(NAPPGUI_BUILD_DRAW2D_LIB)
        #define NAPPGUI_DRAW2D_EXPORT_DLL
    #else
        #define NAPPGUI_DRAW2D_IMPORT_DLL
    #endif
#endif

#if defined(__GNUC__)
    #if defined(NAPPGUI_DRAW2D_EXPORT_DLL)
        #define _draw2d_api __attribute__((visibility("default")))
    #else
        #define _draw2d_api
    #endif
#elif defined(_MSC_VER)
    #if defined(NAPPGUI_DRAW2D_IMPORT_DLL)
        #define _draw2d_api __declspec(dllimport)
    #elif defined(NAPPGUI_DRAW2D_EXPORT_DLL)
        #define _draw2d_api __declspec(dllexport)
    #else
        #define _draw2d_api
    #endif
#else
    #error Unknown compiler
#endif

/* clang-format on */
