** Written by Kiem-Phong Vo (5/25/96)
*/
-#if _PACKAGE_ast
+#if defined(_PACKAGE_ast)
#include <ast.h>
#else
#include <ast_common.h>
#define RROTATE(x,y) (rrotate(x,y), (x) = (y))
#define LROTATE(x,y) (lrotate(x,y), (x) = (y))
-#if !_PACKAGE_ast
+#if !defined(_PACKAGE_ast)
_BEGIN_EXTERNS_
extern Void_t* malloc _ARG_((size_t));
extern Void_t* realloc _ARG_((Void_t*, size_t));
#define _proto_stdc 1 /* Standard-C prototypes ok */
/* __STD_C indicates that the language is ANSI-C or C++ */
-#if !defined(__STD_C) && __STDC__
+#if !defined(__STD_C) && defined(__STDC__)
#define __STD_C 1
#endif
-#if !defined(__STD_C) && (__cplusplus || c_plusplus)
+#if !defined(__STD_C) && (defined(__cplusplus) || defined(c_plusplus))
#define __STD_C 1
#endif
-#if !defined(__STD_C) && _proto_stdc
+#if !defined(__STD_C) && defined(_proto_stdc)
#define __STD_C 1
#endif
#if !defined(__STD_C)
/* extern symbols must be protected against C++ name mangling */
#ifndef _BEGIN_EXTERNS_
-#if __cplusplus || c_plusplus
+#if defined(__cplusplus) || defined(c_plusplus)
#define _BEGIN_EXTERNS_ extern "C" {
#define _END_EXTERNS_ }
#else
/* dynamic linked library external scope handling */
#undef extern
-#if _dll_import && !defined(__EXPORT__) && _DLL_BLD
+#if defined(_dll_import) && !defined(__EXPORT__) && defined(_DLL_BLD)
#define __EXPORT__ __declspec(dllexport)
#endif
-#if _dll_import && !defined(__IMPORT__)
+#if defined(_dll_import) && !defined(__IMPORT__)
#define __IMPORT__ __declspec(dllimport)
#endif
#if !defined(_astimport)
-#if defined(__IMPORT__) && _DLL_BLD
+#if defined(__IMPORT__) && defined(_DLL_BLD)
#define _astimport __IMPORT__
#else
#define _astimport extern
#endif
#endif /*_astimport*/
-#if !_DLL_BLD && _dll_import
+#if !defined(_DLL_BLD) && defined(_dll_import)
#define __EXTERN__(T,obj) extern T obj; T* _imp__ ## obj = &obj
#define __DEFINE__(T,obj,val) T obj = val; T* _imp__ ## obj = &obj
#else
#define __DEFINE__(T,obj,val) T obj = val
#endif
#ifndef _AST_STD_H
-# if _hdr_stddef
+# if defined(_hdr_stddef)
# include <stddef.h>
# endif
-# if _sys_types
+# if defined(_sys_types)
# include <sys/types.h>
# endif
#endif
-#if !_typ_size_t
+#if !defined(_typ_size_t)
# define _typ_size_t 1
typedef int size_t;
#endif
-#if !_typ_ssize_t
+#if !defined(_typ_ssize_t)
# define _typ_ssize_t 1
typedef int ssize_t;
#endif