mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
some portability cleanups
This commit is contained in:
parent
7612bf90be
commit
bce144211c
4 changed files with 21 additions and 25 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "pico_port.h"
|
||||
#include "pico.h"
|
||||
#include "carthw/carthw.h"
|
||||
|
||||
|
@ -1072,25 +1073,6 @@ void pevt_dump(void);
|
|||
#define pevt_dump()
|
||||
#endif
|
||||
|
||||
// misc
|
||||
#ifdef _MSC_VER
|
||||
#define cdprintf
|
||||
#else
|
||||
#define cdprintf(x...)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(__i386__)
|
||||
#define REGPARM(x) __attribute__((regparm(x)))
|
||||
#else
|
||||
#define REGPARM(x)
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define NOINLINE __attribute__((noinline))
|
||||
#else
|
||||
#define NOINLINE
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // End of extern "C"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue