add 68k overclocking support
[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 #define unlikely(x) __builtin_expect((x), 0)
14 #else
15 #define NOINLINE
16 #define ALIGNED(n)
17 #define unlikely(x) (x)
18 #endif
19
20 #ifdef _MSC_VER
21 #define snprintf _snprintf
22 #define strcasecmp _stricmp
23 #define strncasecmp _strnicmp
24 #define strdup _strdup
25 #endif
26
27 #endif // PICO_PORT_INCLUDED