This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/ProbLog/simplecudd_lfi/cheaders.h

51 lines
1.1 KiB
C

/*
* cheaders.h : A unified headers file for APT. It does slow down compile
* time somewhat, but this allows us to ensure consistent usage
* of header files and replace missing ones easily.
*/
#ifndef APT_CHEADERS_H
#define APT_CHEADERS_H
#include "apt_config.h"
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#else
#error Your C compiler is very old (ctype.h missing). Time to upgrade. Sorry
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#else
#error Your C compiler is very old (string.h missing). Time to upgrade. Sorry
#endif
#ifdef HAVE_STDIO_H
#include <stdio.h>
#else
#error Your C compiler is very old (stdio.h missing). Time to upgrade. Sorry
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
#error Your C compiler is not ANSI C (stdlib.h missing). Time to upgrade. Sorry
#endif
#if HAVE_STDARG_H
# include <stdarg.h>
# define VA_START(a, f) va_start(a, f)
#else
# if HAVE_VARARGS_H
# include <varargs.h>
# define VA_START(a, f) va_start(a)
# endif
#endif
#ifndef VA_START
#error Your C compiler has no support for variable argument functions. Time to upgrade. Sorry.
#endif
#endif