aboutsummaryrefslogtreecommitdiffstats
path: root/config.nmake
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-07-24 15:54:55 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-07-24 15:54:55 +0000
commit61e0e4d88ce29a1f21f5a7a11e0d7577f0c0c089 (patch)
tree0f6fe564d6077c5c91fa4b66830e20af970432e0 /config.nmake
parent479580361495b846eba45ff577a696f61c377875 (diff)
Make it possible to use GetProcessMemoryInfo on Windows.
svn path=/trunk/; revision=50865
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.nmake b/config.nmake
index aaf108cc6b..c7e6f89f57 100644
--- a/config.nmake
+++ b/config.nmake
@@ -289,7 +289,7 @@ GTK_PKG=3.4.4-2.1
# (MAJOR + MINOR Version number but without MICRO version number)
# These macros are used by the nsis installer script and by the setup target.
#
-!IF "$(GTK_NAME)" == "gtk2"
+!IF "$(GTK_NAME)" == "gtk3"
GTK_INST_VERSION=2.24
!ELSE
GTK_INST_VERSION=3.4
@@ -845,6 +845,11 @@ APPVER=5.02
# /DWIN32_LEAN_AND_MEAN Don't include unnecessary Windows include files (see windows.h).
# /MANIFEST:no Don't create a SxS manifest. Makes sure our plugins don't load
# a second copy of the CRT.
+# -DPSAPI_VERSION=1 Programs that must run on earlier versions of Windows as well as Windows 7 and later
+# versions should always call this function as GetProcessMemoryInfo. To ensure correct resolution of symbols,
+# add Psapi.lib to the TARGETLIBS macro and compile the program with -DPSAPI_VERSION=1.
+# To use run-time dynamic linking, load Psapi.dll.
+# http://msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx
#
##Note: LOCAL_CFLAGS are flags used for *all* compilations
## STANDARD_CFLAGS (see below) are flags used just for *Wireshark* compilations
@@ -858,7 +863,7 @@ APPVER=5.02
"$(MSVC_VARIANT)" == "MSVC2012" || \
"$(MSVC_VARIANT)" == "MSVC2012EE"
LOCAL_CFLAGS=/Zi /W3 /MD /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \
- /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
+ /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DPSAPI_VERSION=1
!IF "$(WIRESHARK_TARGET_PLATFORM)" != "win64"
LOCAL_CFLAGS=$(LOCAL_CFLAGS) /D_BIND_TO_CURRENT_CRT_VERSION=1