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
This commit is contained in:
snappy.mirrorbot@gmail.com
2011-03-30 20:27:53 +00:00
parent f67bcaa610
commit 3dd93f3ec7

View File

@@ -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__)