typos, reduce mingw header diffs, extra includes.
authorRobert Dickenson <robd@reactos.org>
Sun, 8 Dec 2002 16:18:30 +0000 (16:18 +0000)
committerRobert Dickenson <robd@reactos.org>
Sun, 8 Dec 2002 16:18:30 +0000 (16:18 +0000)
svn path=/trunk/; revision=3835

reactos/include/ddk/ntddbeep.h
reactos/include/ddk/ntddkbd.h
reactos/include/excpt.h
reactos/include/kernel32/winnls.h
reactos/include/tchar.h

index 2663ecd..1fa4630 100644 (file)
@@ -31,6 +31,7 @@
 extern "C" {
 #endif
 
+#pragma pack(push,4)
 
 #define IOCTL_BEEP_SET \
   CTL_CODE(FILE_DEVICE_BEEP,0,METHOD_BUFFERED,FILE_ANY_ACCESS)
@@ -43,6 +44,8 @@ typedef struct tagBEEP_SET_PARAMETERS {
 #define BEEP_FREQUENCY_MINIMUM  0x25
 #define BEEP_FREQUENCY_MAXIMUM  0x7FFF
 
+#pragma pack(pop)
+
 #ifdef __cplusplus
 }
 #endif
index 527392c..fa903f3 100644 (file)
@@ -1,5 +1,38 @@
-#ifndef _NTDDKBD_
-#define _NTDDKBD_
+/*
+ * ntddkbd.h
+ *
+ * Keyboard IOCTL interface
+ *
+ * This file is part of the MinGW package.
+ *
+ * Contributors:
+ *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
+ *
+ * THIS SOFTWARE IS NOT COPYRIGHTED
+ *
+ * This source code is offered for use in the public domain. You may
+ * use, modify or distribute it freely.
+ *
+ * This code is distributed in the hope that it will be useful but
+ * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
+ * DISCLAMED. This includes but is not limited to warranties of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ */
+
+#ifndef __NTDDKBD_H
+#define __NTDDKBD_H
+
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#pragma pack(push,4)
+
 
 typedef struct _KEYBOARD_INPUT_DATA {
 
@@ -16,4 +49,11 @@ typedef struct _KEYBOARD_INPUT_DATA {
 
 } KEYBOARD_INPUT_DATA, *PKEYBOARD_INPUT_DATA;
 
-#endif                                                 // _NTDDKBD_
+
+#pragma pack(pop)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __NTDDKBD_H */
index 4047ef2..e627d00 100644 (file)
  *
  *  This code is distributed in the hope that it will be useful but
  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
- *  DISCLAMED. This includes but is not limited to warranties of
+ *  DISCLAIMED. This includes but is not limited to warranties of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Revision: 1.3 $
- * $Author: chorns $
- * $Date: 2002/09/08 10:22:26 $
+ * $Revision: 1.4 $
+ * $Author: robd $
+ * $Date: 2002/12/08 16:18:29 $
  *
  */
 
@@ -96,7 +96,7 @@ typedef PEXCEPTION_REGISTRATION PEXCEPTION_REGISTRATION_RECORD;
 
 
 /*
- * A macro which (dispite its name) *removes* an installed
+ * A macro which (despite its name) *removes* an installed
  * exception handler. Should be used only in conjunction with the above
  * install routine __try1.
  * Move the pointer to the old reg. struct (at the current stack
index b293529..d07a3ba 100644 (file)
 #define SUBLANGID(l)           ((WORD)(l) >> 10)
 #endif
 
-#if 0
+#ifdef _KERNEL32_INCLUDE_LANG_
 #define LANG_SYSTEM_DEFAULT    (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
 #define LANG_USER_DEFAULT      (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
-#define LOCALE_SYSTEM_DEFAULT  (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
-#define LOCALE_USER_DEFAULT    (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT)) 
-#define LOCALE_NEUTRAL         (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
+//#define LOCALE_SYSTEM_DEFAULT        (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
+//#define LOCALE_USER_DEFAULT  (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT)) 
+//#define LOCALE_NEUTRAL               (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
 #endif
 
 /* Language IDs (were in winnt.h,  for some reason) */
index e108dd7..6052838 100644 (file)
  *
  *  This code is distributed in the hope that it will be useful but
  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
- *  DISCLAMED. This includes but is not limited to warranties of
+ *  DISCLAIMED. This includes but is not limited to warranties of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Revision: 1.3 $
- * $Author: chorns $
- * $Date: 2002/09/08 10:22:28 $
+ * $Revision: 1.4 $
+ * $Author: robd $
+ * $Date: 2002/12/08 16:18:29 $
  *
  */