r9949: Portability fixes for mingw32
[Samba/ekacnet.git] / source / lib / replace / win32 / replace.h
blob94fa140681f5eb8bc603f710db7836203594c4d1
1 #ifndef _WIN32_REPLACE_H
2 #define _WIN32_REPLACE_H
4 /* Map BSD Socket errorcodes to the WSA errorcodes (if possible) */
6 #define EAFNOSUPPORT WSAEAFNOSUPPORT
7 #define ECONNREFUSED WSAECONNREFUSED
8 #define EINPROGRESS WSAEINPROGRESS
9 #define EMSGSIZE WSAEMSGSIZE
10 #define ENOBUFS WSAENOBUFS
11 #define ENOTSOCK WSAENOTSOCK
12 #define ENETUNREACH WSAENETUNREACH
13 #define ENOPROTOOPT WSAENOPROTOOPT
14 #define ENOTCONN WSAENOTCONN
15 #define ENOTSUP 134
17 /* We undefine the following constants due to conflicts with the w32api headers
18 * and the Windows Platform SDK/DDK.
21 #undef interface
23 #undef ERROR_INVALID_PARAMETER
24 #undef ERROR_INSUFFICIENT_BUFFER
25 #undef ERROR_INVALID_DATATYPE
27 #undef FILE_GENERIC_READ
28 #undef FILE_GENERIC_WRITE
29 #undef FILE_GENERIC_EXECUTE
30 #undef FILE_ATTRIBUTE_READONLY
31 #undef FILE_ATTRIBUTE_HIDDEN
32 #undef FILE_ATTRIBUTE_SYSTEM
33 #undef FILE_ATTRIBUTE_DIRECTORY
34 #undef FILE_ATTRIBUTE_ARCHIVE
35 #undef FILE_ATTRIBUTE_DEVICE
36 #undef FILE_ATTRIBUTE_NORMAL
37 #undef FILE_ATTRIBUTE_TEMPORARY
38 #undef FILE_ATTRIBUTE_REPARSE_POINT
39 #undef FILE_ATTRIBUTE_COMPRESSED
40 #undef FILE_ATTRIBUTE_OFFLINE
41 #undef FILE_ATTRIBUTE_ENCRYPTED
42 #undef FILE_FLAG_WRITE_THROUGH
43 #undef FILE_FLAG_NO_BUFFERING
44 #undef FILE_FLAG_RANDOM_ACCESS
45 #undef FILE_FLAG_SEQUENTIAL_SCAN
46 #undef FILE_FLAG_DELETE_ON_CLOSE
47 #undef FILE_FLAG_BACKUP_SEMANTICS
48 #undef FILE_FLAG_POSIX_SEMANTICS
49 #undef FILE_TYPE_DISK
50 #undef FILE_TYPE_UNKNOWN
51 #undef FILE_CASE_SENSITIVE_SEARCH
52 #undef FILE_CASE_PRESERVED_NAMES
53 #undef FILE_UNICODE_ON_DISK
54 #undef FILE_PERSISTENT_ACLS
55 #undef FILE_FILE_COMPRESSION
56 #undef FILE_VOLUME_QUOTAS
57 #undef FILE_VOLUME_IS_COMPRESSED
58 #undef FILE_NOTIFY_CHANGE_DIR_NAME
59 #undef FILE_NOTIFY_CHANGE_ATTRIBUTES
60 #undef FILE_NOTIFY_CHANGE_SIZE
61 #undef FILE_NOTIFY_CHANGE_LAST_WRITE
62 #undef FILE_NOTIFY_CHANGE_LAST_ACCESS
63 #undef FILE_NOTIFY_CHANGE_CREATION
64 #undef FILE_NOTIFY_CHANGE_EA
65 #undef FILE_NOTIFY_CHANGE_SECURITY
66 #undef FILE_NOTIFY_CHANGE_FILE_NAME
68 #undef PRINTER_ATTRIBUTE_QUEUED
69 #undef PRINTER_ATTRIBUTE_DIRECT
70 #undef PRINTER_ATTRIBUTE_DEFAULT
71 #undef PRINTER_ATTRIBUTE_SHARED
72 #undef PRINTER_ATTRIBUTE_NETWORK
73 #undef PRINTER_ATTRIBUTE_HIDDEN
74 #undef PRINTER_ATTRIBUTE_LOCAL
75 #undef PRINTER_ATTRIBUTE_ENABLE_DEVQ
76 #undef PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS
77 #undef PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST
78 #undef PRINTER_ATTRIBUTE_WORK_OFFLINE
79 #undef PRINTER_ATTRIBUTE_ENABLE_BIDI
80 #undef PRINTER_ATTRIBUTE_RAW_ONLY
81 #undef PRINTER_ATTRIBUTE_PUBLISHED
82 #undef PRINTER_ENUM_DEFAULT
83 #undef PRINTER_ENUM_LOCAL
84 #undef PRINTER_ENUM_CONNECTIONS
85 #undef PRINTER_ENUM_FAVORITE
86 #undef PRINTER_ENUM_NAME
87 #undef PRINTER_ENUM_REMOTE
88 #undef PRINTER_ENUM_SHARED
89 #undef PRINTER_ENUM_NETWORK
90 #undef PRINTER_ENUM_EXPAND
91 #undef PRINTER_ENUM_CONTAINER
92 #undef PRINTER_ENUM_ICON1
93 #undef PRINTER_ENUM_ICON2
94 #undef PRINTER_ENUM_ICON3
95 #undef PRINTER_ENUM_ICON4
96 #undef PRINTER_ENUM_ICON5
97 #undef PRINTER_ENUM_ICON6
98 #undef PRINTER_ENUM_ICON7
99 #undef PRINTER_ENUM_ICON8
100 #undef PRINTER_STATUS_PAUSED
101 #undef PRINTER_STATUS_ERROR
102 #undef PRINTER_STATUS_PENDING_DELETION
103 #undef PRINTER_STATUS_PAPER_JAM
104 #undef PRINTER_STATUS_PAPER_OUT
105 #undef PRINTER_STATUS_MANUAL_FEED
106 #undef PRINTER_STATUS_PAPER_PROBLEM
107 #undef PRINTER_STATUS_OFFLINE
108 #undef PRINTER_STATUS_IO_ACTIVE
109 #undef PRINTER_STATUS_BUSY
110 #undef PRINTER_STATUS_PRINTING
111 #undef PRINTER_STATUS_OUTPUT_BIN_FULL
112 #undef PRINTER_STATUS_NOT_AVAILABLE
113 #undef PRINTER_STATUS_WAITING
114 #undef PRINTER_STATUS_PROCESSING
115 #undef PRINTER_STATUS_INITIALIZING
116 #undef PRINTER_STATUS_WARMING_UP
117 #undef PRINTER_STATUS_TONER_LOW
118 #undef PRINTER_STATUS_NO_TONER
119 #undef PRINTER_STATUS_PAGE_PUNT
120 #undef PRINTER_STATUS_USER_INTERVENTION
121 #undef PRINTER_STATUS_OUT_OF_MEMORY
122 #undef PRINTER_STATUS_DOOR_OPEN
123 #undef PRINTER_STATUS_SERVER_UNKNOWN
124 #undef PRINTER_STATUS_POWER_SAVE
126 #undef DWORD
127 #undef HKEY_CLASSES_ROOT
128 #undef HKEY_CURRENT_USER
129 #undef HKEY_LOCAL_MACHINE
130 #undef HKEY_USERS
131 #undef HKEY_PERFORMANCE_DATA
132 #undef HKEY_CURRENT_CONFIG
133 #undef HKEY_DYN_DATA
134 #undef REG_DWORD
135 #undef REG_QWORD
137 #undef SERVICE_STATE_ALL
139 #undef SE_GROUP_MANDATORY
140 #undef SE_GROUP_ENABLED_BY_DEFAULT
141 #undef SE_GROUP_ENABLED
143 #endif /* _WIN32_REPLACE_H */