summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/w32api/ChangeLog5
-rw-r--r--winsup/w32api/include/prsht.h8
-rw-r--r--winsup/w32api/include/windowsx.h4
3 files changed, 11 insertions, 6 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 988900081..d2a9d9536 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,5 +1,10 @@
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+ * include/prsht.h (SNDMDG, POSTMSG): Fix typo.
+ * include/windowsx.h (SNDMSG): Ditto.
+
+2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
* include/prsht.h (SNDMSG, POSTMSG): Define macros and use throughout.
Thank you to Ozkan Sezer for reporting the issue.
diff --git a/winsup/w32api/include/prsht.h b/winsup/w32api/include/prsht.h
index 325435979..a7706ab2b 100644
--- a/winsup/w32api/include/prsht.h
+++ b/winsup/w32api/include/prsht.h
@@ -6,17 +6,17 @@
#ifndef SNDMSG
#ifdef __cplusplus
-#define SNDMSG ::SNDMSG
+#define SNDMSG ::SendMessage
#else
-#define SNDMSG SNDMSG
+#define SNDMSG SendMessage
#endif
#endif /* ifndef SNDMSG */
#ifndef POSTMSG
#ifdef __cplusplus
-#define POSTMSG ::POSTMSG
+#define POSTMSG ::PostMessage
#else
-#define POSTMSG POSTMSG
+#define POSTMSG PostMessage
#endif
#endif /* ifndef POSTMSG */
diff --git a/winsup/w32api/include/windowsx.h b/winsup/w32api/include/windowsx.h
index f0510a665..ec7930bd2 100644
--- a/winsup/w32api/include/windowsx.h
+++ b/winsup/w32api/include/windowsx.h
@@ -6,9 +6,9 @@
#ifndef SNDMSG
#ifdef __cplusplus
-#define SNDMSG ::SNDMSG
+#define SNDMSG ::SendMessage
#else
-#define SNDMSG SNDMSG
+#define SNDMSG SendMessage
#endif
#endif /* ifndef SNDMSG */