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:
parent
4f53324ca3
commit
b5ed0d6c8c
2 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@ AM_CXXFLAGS=
|
||||||
DISTCLEANFILES=
|
DISTCLEANFILES=
|
||||||
|
|
||||||
lib_LTLIBRARIES = libaegisub-2.2.la
|
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@
|
libaegisub_2_2_la_LDFLAGS = @ICONV_LDFLAGS@
|
||||||
|
|
||||||
if PRECOMPILED_HEADER
|
if PRECOMPILED_HEADER
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
/// @brief Platform specific types.
|
/// @brief Platform specific types.
|
||||||
/// @ingroup libaegisub
|
/// @ingroup libaegisub
|
||||||
|
|
||||||
#ifndef LAGI_PRE
|
#ifdef LAGI
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LAGI_PRE
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#ifdef HAVE_SYS_TIME_H
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue