Move conditional inclusion of stdarg.h after conditional define of CAC_ANSI_FUNC_PROTO.

This commit is contained in:
W. Eric Norum
2000-03-13 01:10:30 +00:00
parent f0eeaecdc1
commit ecd0ce91e5

View File

@@ -22,15 +22,6 @@
* auto include of all stuff that cadef.h uses
*/
/*
* use two ifdef's for trad C compatibility
*/
#ifndef CA_DONT_INCLUDE_STDARGH
#ifdef CAC_ANSI_FUNC_PROTO
#include <stdarg.h>
#endif
#endif
#include "caerr.h"
#include "db_access.h"
#include "caeventmask.h"
@@ -50,6 +41,11 @@ extern "C" {
#define CAC_ANSI_FUNC_PROTO
#endif
#endif
#ifndef CA_DONT_INCLUDE_STDARGH
#ifdef CAC_ANSI_FUNC_PROTO
#include <stdarg.h>
#endif
#endif
typedef void *chid;
typedef chid chanId; /* for when the structures field name is "chid" */