a) LUA_USE_LINUX doesn't sound MinGW friendly. Remind me to investigate exactly what that enables. b) Nobody uses VC2003 anymore. Bring back UNIQUE_NAME.
This commit is contained in:
@@ -135,7 +135,9 @@ case $host_os in
|
|||||||
unix=yes
|
unix=yes
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if test $host_os != mingw32; then
|
||||||
AC_DEFINE(LUA_USE_LINUX, 1, [Linux for Lua])
|
AC_DEFINE(LUA_USE_LINUX, 1, [Linux for Lua])
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(UNIX, test "$unix" = "yes" )
|
AM_CONDITIONAL(UNIX, test "$unix" = "yes" )
|
||||||
AM_CONDITIONAL(LINUX, test "$linux" = "yes" )
|
AM_CONDITIONAL(LINUX, test "$linux" = "yes" )
|
||||||
AM_CONDITIONAL(BSD, test "$bsd" = "yes" )
|
AM_CONDITIONAL(BSD, test "$bsd" = "yes" )
|
||||||
|
|||||||
+3
-7
@@ -154,13 +154,9 @@ void ShowWarningOrTrace( const char *file, int line, const char *message, bool b
|
|||||||
|
|
||||||
/* Use UNIQUE_NAME to get the line number concatenated to x. This is useful for
|
/* Use UNIQUE_NAME to get the line number concatenated to x. This is useful for
|
||||||
* generating unique identifiers in other macros. */
|
* generating unique identifiers in other macros. */
|
||||||
/* XXX: VC2003 expanding __LINE__ to nothing in the first version. Investigate why. -Chris */
|
#define UNIQUE_NAME3(x,line) x##line
|
||||||
//#define UNIQUE_NAME3(x,line) x##line
|
#define UNIQUE_NAME2(x,line) UNIQUE_NAME3(x, line)
|
||||||
//#define UNIQUE_NAME2(x,line) UNIQUE_NAME3(x, line)
|
#define UNIQUE_NAME(x) UNIQUE_NAME2(x, __LINE__)
|
||||||
//#define UNIQUE_NAME(x) UNIQUE_NAME2(x, __LINE__)
|
|
||||||
#define UNIQUE_NAME3(x) x
|
|
||||||
#define UNIQUE_NAME2(x) UNIQUE_NAME3(x)
|
|
||||||
#define UNIQUE_NAME(x) UNIQUE_NAME2(x)
|
|
||||||
|
|
||||||
template <bool> struct CompileAssert;
|
template <bool> struct CompileAssert;
|
||||||
template <> struct CompileAssert<true> { };
|
template <> struct CompileAssert<true> { };
|
||||||
|
|||||||
Reference in New Issue
Block a user