X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_port.h;h=70802202685339ee28c506c939fe06acd78bfde4;hb=35f2b65ef708e7afc922ceda8d00b716de289610;hp=f1d95a56b5a8681829a5a8170720599881cd6959;hpb=bce144211cd70e1be78b7c1b7424fb4609de1ac8;p=picodrive.git diff --git a/pico/pico_port.h b/pico/pico_port.h index f1d95a5..7080220 100644 --- a/pico/pico_port.h +++ b/pico/pico_port.h @@ -10,9 +10,18 @@ #ifdef __GNUC__ #define NOINLINE __attribute__((noinline)) #define ALIGNED(n) __attribute__((aligned(n))) +#define unlikely(x) __builtin_expect((x), 0) #else #define NOINLINE #define ALIGNED(n) +#define unlikely(x) (x) +#endif + +#ifdef _MSC_VER +#define snprintf _snprintf +#define strcasecmp _stricmp +#define strncasecmp _strnicmp +#define strdup _strdup #endif #endif // PICO_PORT_INCLUDED