Bug 493008 - Port |Bug 472093 - fix build system to use NTDDI_VERSION instead of random checks| to comm-central; (Cv1) Part 3, add MOZ_NTDDI_* defines; r=kairo
authorSerge Gautherie <sgautherie.bz@free.fr>
Thu, 04 Jun 2009 00:16:38 +0200
changeset 2763 a4ee7c0f12ecd3924d1dd1e610096a656c1dbc5d
parent 2762 dda9efe767998d07641828848b6eba54d385bb2a
child 2764 2a92848ff1f944e2f976dc9775e1f757256a807c
push idunknown
push userunknown
push dateunknown
reviewerskairo
bugs493008, 472093
Bug 493008 - Port |Bug 472093 - fix build system to use NTDDI_VERSION instead of random checks| to comm-central; (Cv1) Part 3, add MOZ_NTDDI_* defines; r=kairo
configure.in
--- a/configure.in
+++ b/configure.in
@@ -786,16 +786,20 @@ EOF
     if $PERL -e "exit(0x$MOZ_WINSDK_TARGETVER > $MOZ_WINSDK_MAXVER)"; then
         AC_MSG_RESULT("yes")
     else
         AC_MSG_RESULT("no")
         AC_MSG_ERROR([You are targeting Windows version 0x$MOZ_WINSDK_TARGETVER, but your SDK only supports up to version $MOZ_WINSDK_MAXVER. Install and use an updated SDK, or target a lower version using --with-windows-version. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.])
     fi
 
     AC_DEFINE_UNQUOTED(MOZ_WINSDK_TARGETVER,0x$MOZ_WINSDK_TARGETVER)
+    # Definitions matching sdkddkver.h
+    AC_DEFINE_UNQUOTED(MOZ_NTDDI_WS03, 0x05020000)
+    AC_DEFINE_UNQUOTED(MOZ_NTDDI_LONGHORN, 0x06000000)
+    AC_DEFINE_UNQUOTED(MOZ_NTDDI_WIN7, 0x06010000)
 
     # Not MOZILLA_1_9_1_BRANCH.
     fi
 
     ;;
 esac
 
 dnl Test breaks icc on OS/2 && MSVC