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

Commit

Permalink
Fix include guard in tree.h and ngx-queue.h
Browse files Browse the repository at this point in the history
The C99 standard reserves all identifiers (including macros) that start with an
underscore and a capital letter.

Fixes #260.
  • Loading branch information
bnoordhuis committed Mar 15, 2012
1 parent 1b6df97 commit 7a2bd05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/uv-private/ngx-queue.h
Expand Up @@ -4,8 +4,8 @@
*/


#ifndef _NGX_QUEUE_H_INCLUDED_
#define _NGX_QUEUE_H_INCLUDED_
#ifndef NGX_QUEUE_H_INCLUDED_
#define NGX_QUEUE_H_INCLUDED_


typedef struct ngx_queue_s ngx_queue_t;
Expand Down Expand Up @@ -103,4 +103,4 @@ struct ngx_queue_s {
for ((q) = ngx_queue_head(h); (q) != (h); (q) = ngx_queue_next(q))


#endif /* _NGX_QUEUE_H_INCLUDED_ */
#endif /* NGX_QUEUE_H_INCLUDED_ */
6 changes: 3 additions & 3 deletions include/uv-private/tree.h
Expand Up @@ -23,8 +23,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef _UV_TREE_H_
#define _UV_TREE_H_
#ifndef UV_TREE_H_
#define UV_TREE_H_

#define __unused

Expand Down Expand Up @@ -759,4 +759,4 @@ name##_RB_MINMAX(struct name *head, int val) \
((x) != NULL) && ((y) = name##_RB_PREV(x), (x) != NULL); \
(x) = (y))

#endif /* _UV_TREE_H_ */
#endif /* UV_TREE_H_ */

0 comments on commit 7a2bd05

Please sign in to comment.