notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drc: support ms ABI
[picodrive.git]
/
pico
/
pico_port.h
diff --git
a/pico/pico_port.h
b/pico/pico_port.h
index
605778d
..
e26e6ca
100644
(file)
--- a/
pico/pico_port.h
+++ b/
pico/pico_port.h
@@
-1,6
+1,12
@@
#ifndef PICO_PORT_INCLUDED
#define PICO_PORT_INCLUDED
#ifndef PICO_PORT_INCLUDED
#define PICO_PORT_INCLUDED
+// provide size_t, uintptr_t
+#include <stdlib.h>
+#if !(defined(_MSC_VER) && _MSC_VER < 1800)
+#include <stdint.h>
+#endif
+
#if defined(__GNUC__) && defined(__i386__)
#define REGPARM(x) __attribute__((regparm(x)))
#else
#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)))
#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)
#else
#define NOINLINE
#define ALIGNED(n)
+#define unlikely(x) (x)
#endif
#ifdef _MSC_VER
#endif
#ifdef _MSC_VER