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:
@ -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
|
||||
|
Reference in New Issue
Block a user