[Cleanup] Handle system dependent defines through autoheader & common-config.h
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2890 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/JpegEncoder.cxx b/common/rfb/JpegEncoder.cxx
index 7129192..2c47a60 100644
--- a/common/rfb/JpegEncoder.cxx
+++ b/common/rfb/JpegEncoder.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <rfb/JpegEncoder.h>
#include <rdr/OutStream.h>
#include <rdr/Exception.h>
diff --git a/common/rfb/Logger.cxx b/common/rfb/Logger.cxx
index 6b9cfa3..8c90906 100644
--- a/common/rfb/Logger.cxx
+++ b/common/rfb/Logger.cxx
@@ -18,6 +18,10 @@
// -=- Logger.cxx - support for the Logger and LogWriter classes
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
diff --git a/common/rfb/Makefile.am b/common/rfb/Makefile.am
index 30c06d7..f2106d1 100644
--- a/common/rfb/Makefile.am
+++ b/common/rfb/Makefile.am
@@ -53,8 +53,7 @@
librfb_la_SOURCES += IrixDMJpegCompressor.cxx IrixDMIC_RawToJpeg.cxx
endif
-librfb_la_CPPFLAGS = -I$(top_srcdir) @JPEG_INCLUDE@ @VSNPRINTF_DEFINE@ \
- @STRCASECMP_DEFINE@ @STRNCASECMP_DEFINE@
+librfb_la_CPPFLAGS = -I$(top_srcdir) @JPEG_INCLUDE@
librfb_la_LIBADD = @JPEG_LIB@
diff --git a/common/rfb/util.cxx b/common/rfb/util.cxx
index 5745432..7950a1d 100644
--- a/common/rfb/util.cxx
+++ b/common/rfb/util.cxx
@@ -30,6 +30,10 @@
* is provided ``as is'' without express or implied warranty.
*/
+#ifndef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <rfb/util.h>
// Provide strcasecmp() and/or strncasecmp() if absent on this system.
diff --git a/common/rfb/util.h b/common/rfb/util.h
index fa205f0..933df52 100644
--- a/common/rfb/util.h
+++ b/common/rfb/util.h
@@ -23,6 +23,10 @@
#ifndef __RFB_UTIL_H__
#define __RFB_UTIL_H__
+#ifdef HAVE_COMMON_CONFIG_H
+#include <common-config.h>
+#endif
+
#include <limits.h>
#include <string.h>