From ecd0ce91e59dec880c04dfa3894cb228b505cb77 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Mon, 13 Mar 2000 01:10:30 +0000 Subject: [PATCH] Move conditional inclusion of stdarg.h after conditional define of CAC_ANSI_FUNC_PROTO. --- src/ca/cadef.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/ca/cadef.h b/src/ca/cadef.h index 44273e5fa..307c31f27 100644 --- a/src/ca/cadef.h +++ b/src/ca/cadef.h @@ -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 -#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 +#endif +#endif typedef void *chid; typedef chid chanId; /* for when the structures field name is "chid" */