comparison fuhtark_test/include/winapi/rpc.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef RPC_NO_WINDOWS_H
7 #include <windows.h>
8 #endif
9
10 #ifndef __RPC_H__
11 #define __RPC_H__
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <basetsd.h>
18
19 #if defined(__ia64__) || defined(__x86_64)
20 #define __RPC_WIN64__
21 #else
22 #define __RPC_WIN32__
23 #endif
24
25 #ifdef __RPC_WIN64__
26 #include <pshpack8.h>
27 #endif
28
29 #ifndef __MIDL_USER_DEFINED
30 #define __MIDL_USER_DEFINED
31 #define midl_user_allocate MIDL_user_allocate
32 #define midl_user_free MIDL_user_free
33 #endif
34
35 typedef void *I_RPC_HANDLE;
36 typedef long RPC_STATUS;
37
38 #define RPC_UNICODE_SUPPORTED
39 #define __RPC_FAR
40 #define __RPC_API __stdcall
41 #define __RPC_USER __RPC_API
42 #define __RPC_STUB __RPC_API
43 #define RPC_ENTRY __RPC_API
44
45 #ifndef DECLSPEC_IMPORT
46 #define DECLSPEC_IMPORT __declspec(dllimport)
47 #endif
48
49 #ifndef _RPCRT4_
50 #define RPCRTAPI DECLSPEC_IMPORT
51 #else
52 #define RPCRTAPI
53 #endif
54
55 #ifndef _RPCNS4_
56 #define RPCNSAPI DECLSPEC_IMPORT
57 #else
58 #define RPCNSAPI
59 #endif
60
61 #include <rpcdce.h>
62 #include <rpcnsi.h>
63 #include <rpcnterr.h>
64 #include <excpt.h>
65 #include <winerror.h>
66
67 #define RpcTryExcept __try {
68 #define RpcExcept(expr) } __except(expr) {
69 #define RpcEndExcept }
70 #define RpcTryFinally __try {
71 #define RpcFinally } __finally {
72 #define RpcEndFinally }
73
74 #define RpcExceptionCode() GetExceptionCode()
75 #define RpcAbnormalTermination() AbnormalTermination()
76
77 #ifndef RPC_NO_WINDOWS_H
78 #include <rpcasync.h>
79 #endif
80
81 #ifdef __RPC_WIN64__
82 #include <poppack.h>
83 #endif
84
85 #ifdef __cplusplus
86 }
87 #endif
88 #endif