Mercurial Patch Queue for Windows System Libraries
Rev. | e77cb33f187d5ad50a65a3d89ee9485d926347bc |
---|---|
大小 | 3,015 字节 |
时间 | 2019-04-02 03:25:55 |
作者 | Keith Marshall |
Log Message | Handle w32api directory rename for 6.0-exp bookmark. |
# HG changeset patch
# Parent 64fd9e3625af924085283c35f3a9d7ac63e1e701
Make <rtutils.h> header effectively self-contained.
diff --git a/wslapi/include/rtutils.h b/wslapi/include/rtutils.h
--- a/wslapi/include/rtutils.h
+++ b/wslapi/include/rtutils.h
@@ -1,31 +1,48 @@
/*
- * rtutils.h - Routing and Remote Access Services
+ * rtutils.h
*
- * THIS SOFTWARE IS NOT COPYRIGHTED
+ * Routing and Remote Access Services Utility Functions
*
- * This source code is offered for use in the public domain. You may use,
- * modify or distribute it freely.
+ * $Id$
*
- * This code is distributed in the hope that it will be useful but
- * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
- * DISCLAIMED. This includes but is not limited to warranties of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * Written by Dimitri Papadopoulos <papadopo@users.sourceforge.net>
+ * Copyright (C) 2006, 2017, MinGW.org Project
+ *
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
*
*/
#ifndef _RTUTILS_H
#define _RTUTILS_H
-#if __GNUC__ >= 3
#pragma GCC system_header
-#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <stdarg.h>
+#include <windef.h>
+
+#if _WIN32_WINNT >= _WIN32_WINNT_WIN2K
+
+_BEGIN_C_DECLS
/*--- Tracing Reference */
-#if (_WIN32_WINNT >= 0x0500)
DWORD WINAPI TraceDeregisterA(DWORD);
DWORD WINAPI TraceDeregisterW(DWORD);
DWORD WINAPI TraceDeregisterExA(DWORD,DWORD);
DWORD WINAPI TraceDeregisterExW(DWORD,DWORD);
#define TRACE_NO_SYNCH 0x00000004
@@ -80,11 +97,10 @@ DWORD WINAPI TraceVprintfExW(DWORD,DWORD
#define TraceRegister TraceRegisterA
#define TraceRegisterEx TraceRegisterExA
#define TraceVprintf TraceVprintfA
#define TraceVprintfEx TraceVprintfExA
#endif
-#endif /* (_WIN32_WINNT >= 0x0500) */
-#ifdef __cplusplus
-}
-#endif
-#endif
+_END_C_DECLS
+
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_WIN2K */
+#endif /* !_RTUTILS_H: $RCSfile$: end of file */