diff options
author | Zbigniew Chyla <zbigniew@chyla.pl> | 2015-01-16 15:46:59 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 10:47:42 -0500 |
commit | 9b07a07f6fed92d1b041bfcd8a49ca7314f75ac3 (patch) | |
tree | 4eb913a03a7b9261f5f4c9d156466fd7eec5ce58 /gps.h | |
parent | fca5b90829621e119a310225b4f1358cd6914d5c (diff) | |
download | gpsd-9b07a07f6fed92d1b041bfcd8a49ca7314f75ac3.tar.gz |
Add compiler.h with compiler specific macros.
Use new macros (UNUSED, PRINTF_FUNC) where appropriate.
This change doesn't affect generated binary code.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -10,14 +10,6 @@ extern "C" { #endif -/* Macro for declaring function arguments unused. */ -#if defined(__GNUC__) -# define UNUSED __attribute__((unused)) /* Flag variable as unused */ -#else /* not __GNUC__ */ -# define UNUSED -#endif - - #include <sys/types.h> #include <sys/time.h> #include <stdbool.h> @@ -29,6 +21,7 @@ extern "C" { #ifndef S_SPLINT_S #include <pthread.h> /* pacifies OpenBSD's compiler */ #endif +#include "compiler.h" /* * 4.1 - Base version for initial JSON protocol (Dec 2009, release 2.90) |