summaryrefslogtreecommitdiff
path: root/snappy-stubs-internal.h
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-30 20:27:53 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-30 20:27:53 +0000
commit5ccd5e3819f0fe2b3d8d1a49dfe830bbf40ab1c2 (patch)
treee65a299d68ab34f4078cc2755425d728309c4729 /snappy-stubs-internal.h
parent6a3000e1753366df94c7c4c8d96518f481343a9b (diff)
downloadsnappy-5ccd5e3819f0fe2b3d8d1a49dfe830bbf40ab1c2.tar.gz
Fix public issue #27: Add HAVE_CONFIG_H tests around the config.h
inclusion in snappy-stubs-internal.h, which eases compiling outside the automake/autoconf framework. R=csilvers DELTA=5 (4 added, 1 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1152 git-svn-id: http://snappy.googlecode.com/svn/trunk@25 03e5f5b5-db94-4691-08a0-1a8bf15f6143
Diffstat (limited to 'snappy-stubs-internal.h')
-rw-r--r--snappy-stubs-internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h
index 45cbc39..46ee235 100644
--- a/snappy-stubs-internal.h
+++ b/snappy-stubs-internal.h
@@ -31,6 +31,10 @@
#ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_
#define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <iostream>
#include <string>
@@ -42,7 +46,6 @@
#include <sys/mman.h>
#endif
-#include "config.h"
#include "snappy-stubs-public.h"
#if defined(__x86_64__)