X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_port.h;h=e26e6ca2cdea2cef199f6689c837e3b8aab1f437;hb=refs%2Fheads%2Fmaster;hp=605778d8497f3d830ae73b47aec87fc316627e6f;hpb=24aab4da7352b5cecad4e09b0dcc0807b14786f2;p=picodrive.git diff --git a/pico/pico_port.h b/pico/pico_port.h index 605778d..e26e6ca 100644 --- a/pico/pico_port.h +++ b/pico/pico_port.h @@ -1,6 +1,12 @@ #ifndef PICO_PORT_INCLUDED #define PICO_PORT_INCLUDED +// provide size_t, uintptr_t +#include +#if !(defined(_MSC_VER) && _MSC_VER < 1800) +#include +#endif + #if defined(__GNUC__) && defined(__i386__) #define REGPARM(x) __attribute__((regparm(x))) #else @@ -10,9 +16,11 @@ #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