00001 /* 00002 * libfid - Full-text Index Data structure library 00003 * Copyright (C) 2007, 2008 Robert Homann 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00018 * MA 02110-1301 USA 00019 */ 00020 00021 #ifndef VACOPY_H 00022 #define VACOPY_H 00023 00024 #ifdef HAVE_CONFIG_H 00025 #include "config.h" 00026 #endif /* HAVE_CONFIG_H */ 00027 00028 #ifdef HAVE_STDARG_H 00029 #include <stdarg.h> 00030 #else /* !HAVE_STDARG_H */ 00031 #ifdef HAVE_SYS_VARARGS_H 00032 #include <sys/varargs.h> 00033 #endif /* HAVE_SYS_VARARGS_H */ 00034 #endif /* HAVE_STDARG_H */ 00035 00036 #ifndef HAVE_VA_COPY 00037 #ifdef HAVE___VA_COPY 00038 #define va_copy(D,S) __va_copy(D,S) 00039 #else /* !HAVE___VA_COPY */ 00040 #include <string.h> 00041 #define va_copy(D,S) memcpy (&(D),&(S),sizeof(va_list)) 00042 #endif /* HAVE___VA_COPY */ 00043 #endif /* !HAVE_VA_COPY */ 00044 00045 #endif /* !VACOPY_H */