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

Commit

Permalink
Use RB_GENERATE_STATIC, not RB_GENERATE_INTERNAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 16, 2012
1 parent aff94a0 commit 87151c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/unix/linux/inotify.c
Expand Up @@ -132,8 +132,7 @@ static int compare_watchers(const uv_fs_event_t* a, const uv_fs_event_t* b) {
}


RB_GENERATE_INTERNAL(uv__inotify_watchers, uv_fs_event_s, node, compare_watchers,
inline static __attribute__((unused)))
RB_GENERATE_STATIC(uv__inotify_watchers, uv_fs_event_s, node, compare_watchers)


void uv__inotify_loop_init(uv_loop_t* loop) {
Expand Down
7 changes: 1 addition & 6 deletions src/uv-common.c
Expand Up @@ -32,10 +32,6 @@
#include "ares/inet_net_pton.h"
#include "ares/inet_ntop.h"

#if !defined(__GNUC__) && !defined(__clang__)
# define __attribute__(x)
#endif


size_t uv_strlcpy(char* dst, const char* src, size_t size) {
size_t n;
Expand Down Expand Up @@ -191,8 +187,7 @@ static int cmp_ares_tasks(const uv_ares_task_t* a, const uv_ares_task_t* b) {
}


RB_GENERATE_INTERNAL(uv__ares_tasks, uv_ares_task_s, node, cmp_ares_tasks,
inline static __attribute__((unused)))
RB_GENERATE_STATIC(uv__ares_tasks, uv_ares_task_s, node, cmp_ares_tasks)


/* add ares handle to list */
Expand Down

0 comments on commit 87151c8

Please sign in to comment.