21 #ifdef PBD_IS_IN_WIN_STATIC_LIB
23 #define PBD_IS_IN_WINDLL 0
31 #include <ardourext/misc.h>
32 #include <ardourext/sys/time.h>
35 #if !defined(PBD_IS_IN_WINDLL)
36 #if defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
38 #define PBD_IS_IN_WINDLL 1
40 #define PBD_IS_IN_WINDLL 0
44 #if PBD_IS_IN_WINDLL && !defined(PBD_APICALLTYPE)
45 #if defined(BUILDING_PBD)
46 #define PBD_APICALLTYPE __cdecl
47 #elif defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
48 #define PBD_APICALLTYPE __cdecl
50 #error "Attempting to define __declspec with an incompatible compiler !"
52 #elif !defined(PBD_APICALLTYPE)
54 #define PBD_APICALLTYPE
57 #define GETOPT_APICALLTYPE
62 #if defined(BUILDING_GETOPT)
63 #define GETOPT_API __declspec(dllexport)
64 #define GETOPT_APICALLTYPE __cdecl
65 #elif defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__) || defined(_MINGW32__)
66 #define GETOPT_API __declspec(dllimport)
67 #define GETOPT_APICALLTYPE __cdecl
69 #error "Attempting to define __declspec with an incompatible compiler !"
77 #define PATH_MAX _MAX_PATH
88 #ifdef PLATFORM_WINDOWS
91 #if defined(BUILDING_PBDEXTN)
92 #define PBDEXTN_API __declspec(dllexport)
93 #define PBDEXTN_APICALLTYPE __cdecl
94 #elif defined(COMPILER_MSVC) || defined(COMPILER_MINGW)
95 #define PBDEXTN_API __declspec(dllimport)
96 #define PBDEXTN_APICALLTYPE __cdecl
98 #error "Attempting to define __declspec with an incompatible compiler !"
102 #ifndef CYGIMPORT_API
103 #define CYGIMPORT_API __declspec(dllimport)
104 #define CYGIMPORT_APICALLTYPE __cdecl
108 #define __THROW throw()
112 #define RTLD_DEFAULT ((void *) 0)
113 #define RTLD_NEXT ((void *) -1L)
114 #define RTLD_LAZY 0x00001
115 #define RTLD_NOW 0x00002
116 #define RTLD_BINDING_MASK 0x00003
117 #define RTLD_NOLOAD 0x00004
118 #define RTLD_GLOBAL 0x00004
119 #define RTLD_DEEPBIND 0x00008
123 #define OPEN_MAX (32)
130 PBDEXTN_API
int PBDEXTN_APICALLTYPE cyginit (
unsigned int result);
144 #if !defined(BUILDING_EVORAL) && !defined(BUILDING_QMDSP) && !defined(BUILDING_VAMPPLUGINS)
146 typedef int (FAR PBDEXTN_APICALLTYPE *CYGINIT_API)(
unsigned int);
149 #include <sys/types.h>
152 #define FILENAME_MAX (260)
159 typedef SSIZE_T _ssize_t;
160 #elif _MSC_VER < 1800
161 typedef long _ssize_t;
164 typedef LONG_PTR _ssize_t;
168 typedef _ssize_t ssize_t;
173 typedef unsigned int nfds_t;
179 LIBPBD_API int __cdecl gettimeofday(
struct timeval *__restrict tv, __timezone_ptr_t tz) __THROW;
183 #if defined(_MSC_VER) && (_MSC_VER < 1800)
191 #if defined(_MSC_VER) && (_MSC_VER < 1900)
198 #if defined(_MSC_VER) && (_MSC_VER < 1900)
213 unsigned short d_reclen;
214 unsigned short d_namlen;
215 char d_name[FILENAME_MAX];
223 struct _finddata_t dd_dta;
227 struct dirent dd_dir;