diff options
| author | nyamatongwe <unknown> | 2012-07-16 20:18:31 +1000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2012-07-16 20:18:31 +1000 |
| commit | 1c2608dbc66e4e6589208703b214b4d7939f6743 (patch) | |
| tree | cbb233dbbf3dec7978186c839b38ee85b55c4ace /win32/makefile | |
| parent | c82aad1a0279ac7232477876cfba1a9570ebd3c3 (diff) | |
| download | scintilla-mirror-1c2608dbc66e4e6589208703b214b4d7939f6743.tar.gz | |
Reenable building for Windows NT 4 on NT 4.
Diffstat (limited to 'win32/makefile')
| -rw-r--r-- | win32/makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/makefile b/win32/makefile index c71997c65..6d2846feb 100644 --- a/win32/makefile +++ b/win32/makefile @@ -8,6 +8,15 @@ CC = g++ DEL = del /q +# Discover Windows version by running 'VER' command and parsing output +# For Windows 2000 looks like:Microsoft Windows 2000 [Version 5.00.2195] +WINVERWORDS:=$(wordlist 1,2,$(subst ., ,$(lastword $(shell ver)))) +WINVER:=$(firstword $(WINVERWORDS)).$(lastword $(WINVERWORDS)) +# Windows NT 4 does not support GetMonitorInfo +ifeq '$(WINVER)' '4.0' + VERSION_DEFINES:=-DWIN_TARGET=0x0400 +endif + COMPONENT = ../bin/Scintilla.dll LEXCOMPONENT = ../bin/SciLexer.dll LEXLIB = Lexers.a |
