/* c_dialect.h
 * $Id: c_dialect.h,v 1.1 92/11/30 18:00:48 connolly Exp Locker: connolly $
 */

#ifndef c_dialect_h
#define c_dialect_h

/* __STDC__ is defined by ANSI C */

/* __stdc__ should be set to 1 for compilers
   that are not strictly conforming ANSI C compilers,
   and thus don't define __STDC__, but do support
   the following featers. (e.g. CONVEX C)
   */

/* K&R style C is the default */

#ifndef PARAMS
#if defined(__STDC__) || defined(__stdc__)
#define PARAMS(x) x
#else
#define PARAMS(x) ()
#endif
#endif

#ifndef CONST
#if defined(__STDC__) || defined(__stdc__)
#define CONST const
#else
#define CONST
#endif
#endif

#ifndef VOIDPTR
#if defined(__STDC__) || defined(__stdc__)
#define VOIDPTR void*
#define VOID void
#else
#define VOIDPTR char*
#define VOID int
#endif
#endif

#endif /* c_dialect_h */

