Use RB_GENERATE_STATIC, not RB_GENERATE_INTERNAL.

This commit is contained in:
Ben Noordhuis 2012-03-16 02:28:44 +01:00
parent aff94a069c
commit 87151c8a7b
2 changed files with 2 additions and 8 deletions

View File

@ -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) {

View File

@ -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;
@ -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 */