aboutsummaryrefslogtreecommitdiff
path: root/winsup/w32api
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-04-20 15:17:36 +0000
committerChristopher Faylor <me@cgf.cx>2004-04-20 15:17:36 +0000
commit4cc12c56301d5092226264aa294674f17640448e (patch)
treee962322d029aeb3c0bd13d7d6ee61ff1c7fd096c /winsup/w32api
parent43fb8fbb0a77aaa6600b55647faff1a55ff39ba2 (diff)
downloadnewlib-4cc12c56301d5092226264aa294674f17640448e.zip
newlib-4cc12c56301d5092226264aa294674f17640448e.tar.gz
newlib-4cc12c56301d5092226264aa294674f17640448e.tar.bz2
* include/wingdi.h: Protect non-unicode case of below.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog4
-rw-r--r--winsup/w32api/include/wingdi.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 8665205..98c4096 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,5 +1,9 @@
2004-04-20 Christopher Faylor <cgf@alum.bu.edu>
+ * include/wingdi.h: Protect non-unicode case of below.
+
+2004-04-20 Christopher Faylor <cgf@alum.bu.edu>
+
* include/wingdi.h: Protect use of ENUMLOGFONTEXDV, PENUMLOGFONTEXDV,
LPENUMLOGFONTEXDV with appropriate version check.
diff --git a/winsup/w32api/include/wingdi.h b/winsup/w32api/include/wingdi.h
index 9c445db..7be8a5b 100644
--- a/winsup/w32api/include/wingdi.h
+++ b/winsup/w32api/include/wingdi.h
@@ -2952,9 +2952,11 @@ typedef TEXTMETRICA TEXTMETRIC,*PTEXTMETRIC,*LPTEXTMETRIC;
#define ICMENUMPROC ICMENUMPROCA
#define FONTENUMPROC FONTENUMPROCA
typedef DEVMODEA DEVMODE,*PDEVMODE,*LPDEVMODE;
-typedef ENUMLOGFONTEXDVA ENUMLOGFONTEXDV;
-typedef PENUMLOGFONTEXDVA PENUMLOGFONTEXDV;
-typedef LPENUMLOGFONTEXDVA LPENUMLOGFONTEXDV;
+#if _WIN32_WINNT >= 0x0500
+typedef ENUMLOGFONTEXDVW ENUMLOGFONTEXDV;
+typedef PENUMLOGFONTEXDVW PENUMLOGFONTEXDV;
+typedef LPENUMLOGFONTEXDVW LPENUMLOGFONTEXDV;
+#endif
typedef EXTLOGFONTA EXTLOGFONT,*PEXTLOGFONT,*LPEXTLOGFONT;
typedef GCP_RESULTSA GCP_RESULTS,*LPGCP_RESULTS;
typedef OUTLINETEXTMETRICA OUTLINETEXTMETRIC,*POUTLINETEXTMETRIC,*LPOUTLINETEXTMETRIC;