summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew@chyla.pl>2015-01-16 15:46:59 +0100
committerEric S. Raymond <esr@thyrsus.com>2015-01-21 10:47:42 -0500
commit9b07a07f6fed92d1b041bfcd8a49ca7314f75ac3 (patch)
tree4eb913a03a7b9261f5f4c9d156466fd7eec5ce58 /gps.h
parentfca5b90829621e119a310225b4f1358cd6914d5c (diff)
downloadgpsd-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.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/gps.h b/gps.h
index b6a727e8..12466196 100644
--- a/gps.h
+++ b/gps.h
@@ -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)