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: https://snappy.googlecode.com/svn/trunk@25 03e5f5b5-db94-4691-08a0-1a8bf15f6143
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__)