1
0
Fork 0

Fix Linux compile bugs.

ycs232-kbc
Jonathan Naylor 4 years ago
parent 81170f53ee
commit 2201b07a38

@ -2,11 +2,11 @@ CC = cc
CXX = c++ CXX = c++
# Use the following CFLAGS and LIBS if you don't want to use gpsd. # Use the following CFLAGS and LIBS if you don't want to use gpsd.
CFLAGS = -g -O3 -Wall -std=c++0x -pthread CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread
LIBS = -lm -lpthread LIBS = -lm -lpthread
# Use the following CFLAGS and LIBS if you do want to use gpsd. # Use the following CFLAGS and LIBS if you do want to use gpsd.
#CFLAGS = -g -O3 -Wall -DUSE_GPSD -std=c++0x -pthread #CFLAGS = -g -O3 -Wall -DHAVE_LOG_H -DUSE_GPSD -std=c++0x -pthread
#LIBS = -lm -lpthread -lgps #LIBS = -lm -lpthread -lgps
LDFLAGS = -g LDFLAGS = -g

@ -28,6 +28,7 @@
#if defined(HAVE_LOG_H) #if defined(HAVE_LOG_H)
#include "Log.h" #include "Log.h"
#else #else
#define LogMessage(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
#define LogError(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__) #define LogError(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
#define LogInfo(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__) #define LogInfo(fmt, ...) ::fprintf(stderr, fmt "\n", ## __VA_ARGS__)
#endif #endif

Loading…
Cancel
Save