///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//                     LibXL C headers version 5.2.0                         //
//                                                                           //
//                 Copyright (c) 2008 - 2026 XLware s.r.o.                   //
//                                                                           //
//   THIS FILE AND THE SOFTWARE CONTAINED HEREIN IS PROVIDED 'AS IS' AND     //
//                COMES WITH NO WARRANTIES OF ANY KIND.                      //
//                                                                           //
//          Please define LIBXL_STATIC variable for static linking.          //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////

#ifndef LIBXL_SETUP_C_H
#define LIBXL_SETUP_C_H

#ifdef LIBXL_STDCALL
  #define LIBXL_CALLING __stdcall
#else
  #define LIBXL_CALLING __cdecl
#endif

#if !defined(LIBXL_STATIC) && (defined(_MSC_VER) || defined(__WATCOMC__))

  #ifdef libxl_EXPORTS
      #define XLAPI __declspec(dllexport)
  #else
      #define XLAPI __declspec(dllimport)
  #endif

  #define XLAPIENTRY LIBXL_CALLING

#else

  #ifdef libxl_EXPORTS
      #define XLAPI __attribute__ ((visibility ("default")))
  #else
      #define XLAPI
  #endif

  #if defined(__MINGW32__)
    #define XLAPIENTRY LIBXL_CALLING
  #else
    #define XLAPIENTRY
  #endif

#endif

#endif
