diff nt/xemacs.mak @ 5940:c608d4b0b75e cygwin64 tip

rescue lost branch from 64bit.backup
author Henry Thompson <ht@markup.co.uk>
date Thu, 16 Dec 2021 18:48:58 +0000
parents 2f34b59f451a
children
line wrap: on
line diff
--- a/nt/xemacs.mak	Fri Jul 24 14:48:46 2015 +0100
+++ b/nt/xemacs.mak	Thu Dec 16 18:48:58 2021 +0000
@@ -72,12 +72,12 @@
 !endif
 !endif
 
-!if [copy $(SRCROOT)\version.sh.in $(SRCROOT)\version.sh]
-!endif
-!if exist($(SRCROOT)\.hg)
-!if [hg identify >> $(SRCROOT)\version.sh]
-!endif
-!endif
+#!if [copy $(SRCROOT)\version.sh.in $(SRCROOT)\version.sh]
+#!endif
+#!if exist($(SRCROOT)\.hg)
+#!if [hg identify >> $(SRCROOT)\version.sh]
+#!endif
+#!endif
 
 # Program name and version
 !include "$(SRCROOT)\version.sh"
@@ -738,10 +738,10 @@
 !if $(USE_CRTDLL)
 !  if $(DEBUG_XEMACS) && "$(OK_TO_USE_MSVCRTD)" == "1"
 C_LIBFLAG=-MDd
-LIBC_LIB=msvcrtd.lib
+LIBC_LIB=msvcrtd.lib ucrtd.lib vcruntimed.lib
 !  else
 C_LIBFLAG=-MD
-LIBC_LIB=msvcrt.lib
+LIBC_LIB=msvcrt.lib ucrt.lib vcruntime.lib
 !  endif
 !else
 C_LIBFLAG=-ML
@@ -793,7 +793,7 @@
 INCLUDES=-I$(NT)\inc -I$(SRC) $(OPT_INCLUDES)
 
 DEFINES=$(OPT_DEFINES) \
-	-DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs -DNTDDI_VERSION=NTDDI_WIN2K -D_WIN32_WINNT=_WIN32_WINNT_WIN2K \
+	-DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs -DNTDDI_VERSION=NTDDI_WIN2K -D_WIN32_WINNT=_WIN32_WINNT_WIN2K -D_CRT_NO_POSIX_ERROR_CODES \
 	-DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
 
 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE)