Let RPC API work with or without windows.h.

* include/rpc.h: Conditionally include <windows.h> before
	header guard.
	* include/wtypes.h: Include <rpc.h> and <rpcndr.h> before
	header guard.
This commit is contained in:
Danny Smith 2002-07-04 08:29:56 +00:00
parent 3368050f8f
commit 875beea460
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2002-07-04 Danny Smith <dannysmith@users.sourceforge.net>
* include/rpc.h: Conditionally include <windows.h> before
header guard.
* include/wtypes.h: Include <rpc.h> and <rpcndr.h> before
header guard.
2002-07-02 Danny Smith <dannysmith@users.sourceforge.net>
* include/commctrl.h (WC_*): Remove some duplicate defines.

View File

@ -1,12 +1,13 @@
#ifndef RPC_NO_WINDOWS_H
#include <windows.h>
#endif
#ifndef _RPC_H
#define _RPC_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifndef RPC_NO_WINDOWS_H
#include <windows.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -1,3 +1,6 @@
#include <rpc.h>
#include <rpcndr.h>
#ifndef _WTYPES_H
#define _WTYPES_H
#if __GNUC__ >=3