1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 07:53:14 +02:00

Removed check for HAVE_VA_LIST_AS_ARRAY, it broke MemoServ.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1893 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-12-31 02:05:50 +00:00
parent 23f4c6b439
commit c16600fee5
5 changed files with 1 additions and 34 deletions
-8
View File
@@ -144,14 +144,6 @@ if(NOT MSVC)
set(LDFLAGS "${LDFLAGS} -lsocket")
endif(HAVE_SOCKET_LIB)
endif(NOT WIN32)
# Check if va_list can be copied as an array, and if it can, set the flag for it
try_run(RUN_VA_LIST_AS_ARRAY COMPILE_VA_LIST_AS_ARRAY
${Anope_SOURCE_DIR} ${Anope_SOURCE_DIR}/va_list_check.c
)
if(COMPILE_VA_LIST_AS_ARRAY AND NOT RUN_VA_LIST_AS_ARRAY)
set(HAVE_VA_LIST_AS_ARRAY 1)
endif(COMPILE_VA_LIST_AS_ARRAY AND NOT RUN_VA_LIST_AS_ARRAY)
endif(NOT MSVC)
# If DEFUMASK wasn't passed to CMake, set a default depending on if RUNGROUP was passed in or not
+1 -5
View File
@@ -125,11 +125,7 @@
# define VA_COPY(DEST, SRC) memcpy ((&DEST), (&SRC), sizeof(va_list))
# endif
#else
# ifdef HAVE_VA_LIST_AS_ARRAY
# define VA_COPY(DEST,SRC) (*(DEST) = *(SRC))
# else
# define VA_COPY(DEST, SRC) va_copy(DEST, SRC)
# endif
# define VA_COPY(DEST, SRC) va_copy(DEST, SRC)
#endif
#ifdef _AIX
-1
View File
@@ -16,7 +16,6 @@
#cmakedefine HAVE_STRLCPY 1
#cmakedefine HAVE_SYS_SELECT_H 1
#cmakedefine HAVE_UMASK 1
#cmakedefine HAVE_VA_LIST_AS_ARRAY 1
#cmakedefine RUNGROUP "@RUNGROUP@"
#cmakedefine SERVICES_BIN "@SERVICES_BIN@"
-1
View File
@@ -16,7 +16,6 @@
#undef HAVE_STRLCPY
#undef HAVE_SYS_SELECT_H
#undef HAVE_UMASK
#undef HAVE_VA_LIST_AS_ARRAY
#undef RUNGROUP
#define SERVICES_BIN "services"
-19
View File
@@ -1,19 +0,0 @@
#include <stdlib.h>
#include <stdarg.h>
void foo(int i, ...)
{
va_list ap1, ap2;
va_start(ap1, i);
ap2 = ap1;
if (va_arg(ap2, int) != 123 || va_arg(ap1, int) != 123) exit(1);
va_end(ap1);
va_end(ap2);
}
int main()
{
foo(0, 123);
return 0;
}