diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-13 14:11:07 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-13 14:11:07 +0000 |
commit | af58b99d1c253e38600ef774ed710f529bd048d9 (patch) | |
tree | b6f166850c485d432fcfd8bcfca5695ae1d7ba80 /include/common.h | |
parent | e2b4335e7a146e768ff402a61ffb4092e834b818 (diff) | |
download | zabbix-af58b99d1c253e38600ef774ed710f529bd048d9.tar.gz zabbix-af58b99d1c253e38600ef774ed710f529bd048d9.tar.xz zabbix-af58b99d1c253e38600ef774ed710f529bd048d9.zip |
- fixed compilation of WinXX agent
git-svn-id: svn://svn.zabbix.com/trunk@3888 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h index 86ca77f3..5aba6814 100644 --- a/include/common.h +++ b/include/common.h @@ -32,8 +32,13 @@ #include "zbxtypes.h" -#undef snprintf - +#ifndef va_copy +# if defined(__va_copy) +# define va_copy(d, s) __va_copy(d, s) +# else +# define va_copy(d, s) memcpy (&d,&s, sizeof(va_list)) +# endif /* __va_copy */ +#endif /* va_copy */ #ifdef snprintf #undef snprintf |