llvm.org GIT mirror llvm / b269ff7
KillTheDoctor: Fix 2008 build. I'm actually surprised 2010 defines all of these, many are non-standard posix/unix extensions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116597 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 10 years ago
1 changed file(s) with 236 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
226226 #ifdef LLVM_ON_WIN32
227227 // VS 2008 needs this for some of the defines below.
228228 # include
229
230 // The following numbers were taken from VS2010.
231 # ifndef EAFNOSUPPORT
232 # define EAFNOSUPPORT WSAEAFNOSUPPORT
233 # endif
234 # ifndef EADDRINUSE
235 # define EADDRINUSE WSAEADDRINUSE
236 # endif
237 # ifndef EADDRNOTAVAIL
238 # define EADDRNOTAVAIL WSAEADDRNOTAVAIL
239 # endif
240 # ifndef EISCONN
241 # define EISCONN WSAEISCONN
242 # endif
243 # ifndef E2BIG
244 # define E2BIG WSAE2BIG
245 # endif
246 # ifndef EDOM
247 # define EDOM WSAEDOM
248 # endif
249 # ifndef EFAULT
250 # define EFAULT WSAEFAULT
251 # endif
252 # ifndef EBADF
253 # define EBADF WSAEBADF
254 # endif
255 # ifndef EBADMSG
256 # define EBADMSG 104
257 # endif
258 # ifndef EPIPE
259 # define EPIPE WSAEPIPE
260 # endif
261 # ifndef ECONNABORTED
262 # define ECONNABORTED WSAECONNABORTED
263 # endif
264 # ifndef EALREADY
265 # define EALREADY WSAEALREADY
266 # endif
267 # ifndef ECONNREFUSED
268 # define ECONNREFUSED WSAECONNREFUSED
269 # endif
270 # ifndef ECONNRESET
271 # define ECONNRESET WSAECONNRESET
272 # endif
273 # ifndef EXDEV
274 # define EXDEV WSAEXDEV
275 # endif
276 # ifndef EDESTADDRREQ
277 # define EDESTADDRREQ WSAEDESTADDRREQ
278 # endif
279 # ifndef EBUSY
280 # define EBUSY WSAEBUSY
281 # endif
282 # ifndef ENOTEMPTY
283 # define ENOTEMPTY WSAENOTEMPTY
284 # endif
285 # ifndef ENOEXEC
286 # define ENOEXEC WSAENOEXEC
287 # endif
288 # ifndef EEXIST
289 # define EEXIST WSAEEXIST
290 # endif
291 # ifndef EFBIG
292 # define EFBIG WSAEFBIG
293 # endif
294 # ifndef ENAMETOOLONG
295 # define ENAMETOOLONG WSAENAMETOOLONG
296 # endif
297 # ifndef ENOSYS
298 # define ENOSYS WSAENOSYS
299 # endif
300 # ifndef EHOSTUNREACH
301 # define EHOSTUNREACH WSAEHOSTUNREACH
302 # endif
303 # ifndef EIDRM
304 # define EIDRM 111
305 # endif
306 # ifndef EILSEQ
307 # define EILSEQ WSAEILSEQ
308 # endif
309 # ifndef ENOTTY
310 # define ENOTTY WSAENOTTY
311 # endif
312 # ifndef EINTR
313 # define EINTR WSAEINTR
314 # endif
315 # ifndef EINVAL
316 # define EINVAL WSAEINVAL
317 # endif
318 # ifndef ESPIPE
319 # define ESPIPE WSAESPIPE
320 # endif
321 # ifndef EIO
322 # define EIO WSAEIO
323 # endif
324 # ifndef EISDIR
325 # define EISDIR WSAEISDIR
326 # endif
327 # ifndef EMSGSIZE
328 # define EMSGSIZE WSAEMSGSIZE
329 # endif
330 # ifndef ENETDOWN
331 # define ENETDOWN WSAENETDOWN
332 # endif
333 # ifndef ENETRESET
334 # define ENETRESET WSAENETRESET
335 # endif
336 # ifndef ENETUNREACH
337 # define ENETUNREACH WSAENETUNREACH
338 # endif
339 # ifndef ENOBUFS
340 # define ENOBUFS WSAENOBUFS
341 # endif
342 # ifndef ECHILD
343 # define ECHILD WSAECHILD
344 # endif
345 # ifndef ENOLINK
346 # define ENOLINK 121
347 # endif
348 # ifndef ENOLCK
349 # define ENOLCK WSAENOLCK
350 # endif
351 # ifndef ENODATA
352 # define ENODATA 120
353 # endif
354 # ifndef ENOMSG
355 # define ENOMSG 122
356 # endif
357 # ifndef ENOPROTOOPT
358 # define ENOPROTOOPT WSAENOPROTOOPT
359 # endif
360 # ifndef ENOSPC
361 # define ENOSPC WSAENOSPC
362 # endif
363 # ifndef ENOSR
364 # define ENOSR 124
365 # endif
366 # ifndef ENXIO
367 # define ENXIO WSAENXIO
368 # endif
369 # ifndef ENODEV
370 # define ENODEV WSAENODEV
371 # endif
372 # ifndef ENOENT
373 # define ENOENT WSAENOENT
374 # endif
375 # ifndef ESRCH
376 # define ESRCH WSAESRCH
377 # endif
378 # ifndef ENOTDIR
379 # define ENOTDIR WSAENOTDIR
380 # endif
381 # ifndef ENOTSOCK
382 # define ENOTSOCK WSAENOTSOCK
383 # endif
384 # ifndef ENOSTR
385 # define ENOSTR 125
386 # endif
387 # ifndef ENOTCONN
388 # define ENOTCONN WSAENOTCONN
389 # endif
390 # ifndef ENOMEM
391 # define ENOMEM WSAENOMEM
392 # endif
393 # ifndef ENOTSUP
394 # define ENOTSUP 129
395 # endif
396 # ifndef ECANCELED
397 # define ECANCELED 105
398 # endif
399 # ifndef EINPROGRESS
400 # define EINPROGRESS WSAEINPROGRESS
401 # endif
402 # ifndef EPERM
403 # define EPERM WSAEPERM
404 # endif
405 # ifndef EOPNOTSUPP
406 # define EOPNOTSUPP WSAEOPNOTSUPP
407 # endif
408 # ifndef EWOULDBLOCK
409 # define EWOULDBLOCK WSAEWOULDBLOCK
410 # endif
411 # ifndef EOWNERDEAD
412 # define EOWNERDEAD 133
413 # endif
414 # ifndef EACCES
415 # define EACCES WSAEACCES
416 # endif
417 # ifndef EPROTO
418 # define EPROTO 134
419 # endif
420 # ifndef EPROTONOSUPPORT
421 # define EPROTONOSUPPORT WSAEPROTONOSUPPORT
422 # endif
423 # ifndef EROFS
424 # define EROFS WSAEROFS
425 # endif
426 # ifndef EDEADLK
427 # define EDEADLK WSAEDEADLK
428 # endif
429 # ifndef EAGAIN
430 # define EAGAIN WSAEAGAIN
431 # endif
432 # ifndef ERANGE
433 # define ERANGE WSAERANGE
434 # endif
435 # ifndef ENOTRECOVERABLE
436 # define ENOTRECOVERABLE 127
437 # endif
438 # ifndef ETIME
439 # define ETIME 137
440 # endif
441 # ifndef ETXTBSY
442 # define ETXTBSY 139
443 # endif
444 # ifndef ETIMEDOUT
445 # define ETIMEDOUT WSAETIMEDOUT
446 # endif
447 # ifndef ENFILE
448 # define ENFILE WSAENFILE
449 # endif
450 # ifndef EMFILE
451 # define EMFILE WSAEMFILE
452 # endif
453 # ifndef EMLINK
454 # define EMLINK WSAEMLINK
455 # endif
456 # ifndef ELOOP
457 # define ELOOP WSAELOOP
458 # endif
459 # ifndef EOVERFLOW
460 # define EOVERFLOW 132
461 # endif
462 # ifndef EPROTOTYPE
463 # define EPROTOTYPE WSAEPROTOTYPE
464 # endif
229465 #endif
230466
231467 namespace llvm {