mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
libuv: Include uv/ headers from each other without any path
Headers in `uv/` can include each other without the `uv/` prefix. Using the prefix assumes that the location of `uv/` is in the include file search path, but it is possible to include `uv.h` via a longer path.
This commit is contained in:
@@ -42,32 +42,32 @@
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include "uv/threadpool.h"
|
||||
#include "threadpool.h"
|
||||
|
||||
#ifdef CMAKE_BOOTSTRAP
|
||||
# include "uv/posix.h"
|
||||
# include "posix.h"
|
||||
#elif defined(__linux__)
|
||||
# include "uv/linux.h"
|
||||
# include "linux.h"
|
||||
#elif defined (__MVS__)
|
||||
# include "uv/os390.h"
|
||||
# include "os390.h"
|
||||
#elif defined(__PASE__)
|
||||
# include "uv/posix.h"
|
||||
# include "posix.h"
|
||||
#elif defined(_AIX)
|
||||
# include "uv/aix.h"
|
||||
# include "aix.h"
|
||||
#elif defined(__sun)
|
||||
# include "uv/sunos.h"
|
||||
# include "sunos.h"
|
||||
#elif defined(__APPLE__)
|
||||
# include "uv/darwin.h"
|
||||
# include "darwin.h"
|
||||
#elif defined(__DragonFly__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__FreeBSD_kernel__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__)
|
||||
# include "uv/bsd.h"
|
||||
# include "bsd.h"
|
||||
#elif defined(__CYGWIN__) || defined(__MSYS__)
|
||||
# include "uv/posix.h"
|
||||
# include "posix.h"
|
||||
#elif defined(__GNU__)
|
||||
# include "uv/posix.h"
|
||||
# include "posix.h"
|
||||
#endif
|
||||
|
||||
#ifndef NI_MAXHOST
|
||||
|
||||
@@ -54,13 +54,13 @@ typedef struct pollfd {
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
# include "uv/stdint-msvc2008.h"
|
||||
# include "stdint-msvc2008.h"
|
||||
#else
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include "uv/tree.h"
|
||||
#include "uv/threadpool.h"
|
||||
#include "tree.h"
|
||||
#include "threadpool.h"
|
||||
|
||||
#define MAX_PIPENAME_LEN 256
|
||||
|
||||
|
||||
Reference in New Issue
Block a user