-/* SDCCglobl.h - global macros etc required by all files */
+;/* SDCCglobl.h - global macros etc required by all files */
#ifndef SDCCGLOBL_H
#define SDCCGLOBL_H
#include <memory.h>
#include <stdlib.h>
#include <setjmp.h>
#include <stdio.h>
-#include "sdccconf.h"
+
+#if defined(_MSC_VER)
+# include "sdcc_vc.h"
+#else
+# include "sdccconf.h"
+#endif // _MSC_VER
+
#include "SDCCerr.h"
+#if defined(_MSC_VER)
+# define NATIVE_WIN32 1
+#endif
+
#ifdef __BORLANDC__
#define NATIVE_WIN32 1
#endif
+
#ifdef __MINGW32__
#define NATIVE_WIN32 1
#endif
int nostdlib : 1 ; /* Don't use standard lib files */
int nostdinc : 1 ; /* Don't use standard include files */
int verbose : 1 ; /* Show what the compiler is doing */
+ int ANSIint : 1 ; /* Use ANSI integer promotion rules in expressions. */
char *calleeSaves[128]; /* list of functions using callee save */
char *excludeRegs[32] ; /* registers excluded from saving */