gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Why is -DHAVE_SYS_TIMEPPS_H=1 on the command line?


From: Hal Murray
Subject: [gpsd-dev] Why is -DHAVE_SYS_TIMEPPS_H=1 on the command line?
Date: Tue, 11 Jun 2019 23:37:15 -0700

Rather than in gpsd_config.h

Example:

gcc -o ais_json.os -c -pthread -Wall -Wcast-align -Wextra 
-Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes 
-Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith 
-Wreturn-type -Wstrict-prototypes -Wvla -O2 -pthread -fPIC 
-DHAVE_SYS_TIMEPPS_H=1 ais_json.c

Others too:
gcc -o monitor_ubx.o -c -pthread -Wall -Wcast-align -Wextra 
-Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes 
-Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith 
-Wreturn-type -Wstrict-prototypes -Wvla -O2 -pthread -DHAVE_SYS_TIMEPPS_H=1 
-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 monitor_ubx.c


-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]