#ifndef SCINTILLA_H
#define SCINTILLA_H
-#if LCCWIN
+#if defined(LCCWIN) && LCCWIN
typedef BOOL bool;
#endif
// Here should be placed typedefs for uptr_t, an unsigned integer type large enough to
// hold a pointer and sptr_t, a signed integer large enough to hold a pointer.
// May need to be changed for 64 bit platforms.
-#if _MSC_VER >= 1300
+#if defined(_MSC_VER) && _MSC_VER >= 1300
#include <BaseTsd.h>
#endif
#ifdef MAXULONG_PTR