let it build on msvc
[picodrive.git] / pico / pico_port.h
1 #ifndef PICO_PORT_INCLUDED
2 #define PICO_PORT_INCLUDED
3
4 #if defined(__GNUC__) && defined(__i386__)
5 #define REGPARM(x) __attribute__((regparm(x)))
6 #else
7 #define REGPARM(x)
8 #endif
9
10 #ifdef __GNUC__
11 #define NOINLINE    __attribute__((noinline))
12 #define ALIGNED(n)  __attribute__((aligned(n)))
13 #else
14 #define NOINLINE
15 #define ALIGNED(n)
16 #endif
17
18 #ifdef _MSC_VER
19 #define snprintf _snprintf
20 #define strcasecmp _stricmp
21 #define strncasecmp _strnicmp
22 #define strdup _strdup
23 #endif
24
25 #endif // PICO_PORT_INCLUDED