picodrive/pico/pico_port.h
notaz 24aab4da73 let it build on msvc
supposedly for the original XBox?
2017-10-14 21:28:24 +03:00

25 lines
499 B
C

#ifndef PICO_PORT_INCLUDED
#define PICO_PORT_INCLUDED
#if defined(__GNUC__) && defined(__i386__)
#define REGPARM(x) __attribute__((regparm(x)))
#else
#define REGPARM(x)
#endif
#ifdef __GNUC__
#define NOINLINE __attribute__((noinline))
#define ALIGNED(n) __attribute__((aligned(n)))
#else
#define NOINLINE
#define ALIGNED(n)
#endif
#ifdef _MSC_VER
#define snprintf _snprintf
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#define strdup _strdup
#endif
#endif // PICO_PORT_INCLUDED