wrap config.h include under LAGI and put -DLAGI when compiling to ensure it's only included when building libaegisub.

Originally committed to SVN as r4585.
This commit is contained in:
Amar Takhar 2010-06-24 01:49:48 +00:00
parent 4f53324ca3
commit b5ed0d6c8c
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ AM_CXXFLAGS=
DISTCLEANFILES=
lib_LTLIBRARIES = libaegisub-2.2.la
libaegisub_2_2_la_CPPFLAGS = -I../src/include -Iinclude -I. @WX_CPPFLAGS@ -pedantic
libaegisub_2_2_la_CPPFLAGS = -I../src/include -Iinclude -I. @WX_CPPFLAGS@ -pedantic -DLAGI
libaegisub_2_2_la_LDFLAGS = @ICONV_LDFLAGS@
if PRECOMPILED_HEADER

View File

@ -18,10 +18,11 @@
/// @brief Platform specific types.
/// @ingroup libaegisub
#ifndef LAGI_PRE
#ifdef LAGI
#include "config.h"
#endif
#ifndef LAGI_PRE
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#else