--- a/incubator/ooSQLite/Makefile.win
+++ b/incubator/ooSQLite/Makefile.win
@@ -45,7 +45,7 @@
 #
 # Otherwise, either uncomment the REXX_HOME line and define the correct
 # REXX_HOME, or be sure the LIB and INCLUDE environment variables allow the
-#compiler to find  the ooRexx native API headers and libraries.
+# compiler to find  the ooRexx native API headers and libraries.
 #
 # On a build system for ooRexx, you can set REXX_HOME to point to Win32Dbg or
 # Win32Rel, as appropriate, in your build directory.  For this to work, you
@@ -101,6 +101,13 @@
 !include install\platform\windows\compiler.info.incl
 
 PLATFORM_DIR = src\platform\windows
+
+# Currently in determineCompiler.bat MSVCVER gets set to 10.0 for VC++ 2010,
+# and any later compiler.  So this works okay.  If the batch file gets changed,
+# then this needs to be revisited.
+!IF "$(MSVCVER)" == "10.0"
+MISCDEFS = /DHAVE_STDINT_H
+!ENDIF
 
 # Stuff we pass to the nsis script
 ROOTDIR = $(MAKEDIR)
@@ -164,7 +171,7 @@
 EXAMPLE_BUILD = DEBUG=1
 DBGPACKAGE = -debug
 
-MISCDEFS = /D:_X86_ /DWIN32 /DNULL=0 $(EXTRADBG)
+MISCDEFS = $(MISCDEFS) /D:_X86_ /DWIN32 /DNULL=0 $(EXTRADBG)
 CFLAGS =  /nologo /EHsc /Zi /Od /MTd /D_DEBUG /DEBUGTYPE:CV /Fd$(OUT_DIR)\ooSQLiteDbg.pdb $(BASEFLAGS) $(MISCDEFS) /c
 LFLAGS_EXE = /nologo /DEBUG /OPT:REF -debugtype:cv /SUBSYSTEM:Console $(REXX_LIBS) $(WIN_LIBS)
 LFLAGS_DLL = /nologo /DEBUG /OPT:REF -debugtype:cv /SUBSYSTEM:Windows $(REXX_LIBS) $(WIN_LIBS) -def:$(PLATFORM_DIR)\ooSQLite.def /DLL
@@ -174,7 +181,7 @@
 OUT_DIR = build\release
 BIN_DIR = bin\windows
 
-MISCDEFS = /D:_X86_ /DWIN32 /DNDEBUG /DNULL=0
+MISCDEFS = $(MISCDEFS) /D:_X86_ /DWIN32 /DNDEBUG /DNULL=0
 CFLAGS = /nologo /EHsc /O2 /Gs /Gy /FAs /Fa$(OUT_DIR)\ /MT $(BASEFLAGS) $(MISCDEFS) /c
 
 LFLAGS_EXE = /nologo /SUBSYSTEM:Console $(REXX_LIBS) $(WIN_LIBS)