[io-layer] Extract file (#4255)
[mono.git] / mono / io-layer / wapi-remap.h
1 /*
2  * wapi-remap.h: io-layer symbol remapping support
3  *
4  * (C) 2014 Xamarin, Inc.
5  */
6
7 #ifndef __WAPI_REMAP_H__
8 #define __WAPI_REMAP_H__
9
10 /*
11  * The windows function names used by the io-layer can collide with symbols in system and 3rd party libs, esp. on osx/ios. So remap them to
12  * wapi_<funcname>.
13  */
14
15 #define GetLastError wapi_GetLastError
16 #define SetLastError wapi_SetLastError
17 #define CloseHandle wapi_CloseHandle 
18
19 #endif /* __WAPI_REMAP_H__ */