Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Allow headers to be included with -Werror and -Wundef
Browse files Browse the repository at this point in the history
Users of the library may enforce a stricter set of compiler warnings causing
their builds to fail due to warnings emitted from the headers.
  • Loading branch information
trondn authored and bnoordhuis committed Aug 8, 2012
1 parent d4737ab commit cbb9300
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/uv-private/eio.h
Expand Up @@ -251,7 +251,7 @@ struct eio_req

eio_channel *channel; /* data used to direct poll callbacks arising from this req */

#if __i386 || __amd64
#if defined(__i386) || defined(__amd64)
unsigned char cancelled;
#else
sig_atomic_t cancelled;
Expand Down
2 changes: 1 addition & 1 deletion include/uv-private/ngx-queue.h
Expand Up @@ -62,7 +62,7 @@ struct ngx_queue_s {
(q)->prev


#if (NGX_DEBUG)
#if defined(NGX_DEBUG)

#define ngx_queue_remove(x) \
(x)->next->prev = (x)->prev; \
Expand Down
4 changes: 2 additions & 2 deletions include/uv-private/uv-unix.h
Expand Up @@ -51,7 +51,7 @@
# include <semaphore.h>
#endif

#if __sun
#if defined(__sun)
# include <sys/port.h>
# include <port.h>
#endif
Expand Down Expand Up @@ -103,7 +103,7 @@ struct uv__io_s {

#define UV_REQ_TYPE_PRIVATE /* empty */

#if __linux__
#if defined(__linux__)
# define UV_LOOP_PRIVATE_PLATFORM_FIELDS \
uv__io_t inotify_read_watcher; \
void* inotify_watchers; \
Expand Down

0 comments on commit cbb9300

Please sign in to comment.