- Last was incomplete commit.
SVN r1528 (trunk)
This commit is contained in:
parent
d3e1199c8f
commit
0060dab892
3 changed files with 22 additions and 22 deletions
|
|
@ -4,6 +4,7 @@ if( COMMAND cmake_policy )
|
|||
cmake_policy( SET CMP0003 NEW )
|
||||
endif( COMMAND cmake_policy )
|
||||
|
||||
include( CheckCXXSourceCompiles )
|
||||
include( CheckFunctionExists )
|
||||
include( FindPkgConfig )
|
||||
|
||||
|
|
@ -151,23 +152,6 @@ else( WIN32 )
|
|||
include_directories( ${FPU_CONTROL_DIR} )
|
||||
add_definitions( -DHAVE_FPU_CONTROL )
|
||||
endif( FPU_CONTROL_DIR )
|
||||
|
||||
include( CheckCXXSourceCompiles )
|
||||
CHECK_CXX_SOURCE_COMPILES(
|
||||
"#include <stdarg.h>
|
||||
int main() { va_list list1, list2; va_copy(list1, list2); return 0; }"
|
||||
HAS_VA_COPY )
|
||||
if( NOT HAS_VA_COPY )
|
||||
CHECK_CXX_SOURCE_COMPILES(
|
||||
"#include <stdarg.h>
|
||||
int main() { va_list list1, list2; __va_copy(list1, list2); return 0; }"
|
||||
HAS___VA_COPY )
|
||||
if( HAS___VA_COPY )
|
||||
add_definitions( -Dva_copy=__va_copy )
|
||||
else( HAS___VA_COPY )
|
||||
message( SEND_ERROR "Compiler does not support va_copy or __va_copy" )
|
||||
endif( HAS___VA_COPY )
|
||||
endif( NOT HAS_VA_COPY )
|
||||
endif( WIN32 )
|
||||
|
||||
# Decide on the name of the FMOD library we want to use.
|
||||
|
|
@ -369,6 +353,22 @@ if( UNIX )
|
|||
endif( NOT CLOCK_GETTIME_IN_RT )
|
||||
endif( UNIX )
|
||||
|
||||
CHECK_CXX_SOURCE_COMPILES(
|
||||
"#include <stdarg.h>
|
||||
int main() { va_list list1, list2; va_copy(list1, list2); return 0; }"
|
||||
HAS_VA_COPY )
|
||||
if( NOT HAS_VA_COPY )
|
||||
CHECK_CXX_SOURCE_COMPILES(
|
||||
"#include <stdarg.h>
|
||||
int main() { va_list list1, list2; __va_copy(list1, list2); return 0; }"
|
||||
HAS___VA_COPY )
|
||||
if( HAS___VA_COPY )
|
||||
add_definitions( -Dva_copy=__va_copy )
|
||||
else( HAS___VA_COPY )
|
||||
add_definitions( -DNO_VA_COPY )
|
||||
endif( HAS___VA_COPY )
|
||||
endif( NOT HAS_VA_COPY )
|
||||
|
||||
# Update svnrevision.h
|
||||
|
||||
add_custom_target( revision_check ALL
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ void STACK_ARGS DCanvas::DrawText (FFont *font, int normalcolor, int x, int y, c
|
|||
case TAG_MORE:
|
||||
more_p = va_arg (tags, va_list*);
|
||||
va_end (tags);
|
||||
#ifdef __GNUC__
|
||||
#ifndef NO_VA_COPY
|
||||
va_copy (tags, *more_p);
|
||||
#else
|
||||
tags = *more_p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue