mirror of https://github.com/odrling/Aegisub
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
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue