Changed snprintf() (un)availability test from COMPILE_FOR_R5 to
__HAIKU__. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fd836a9165
commit
e659b9521f
@ -89,12 +89,13 @@ new_dpc_queue(const char *name, long priority, int queue_size)
|
||||
queue->count = 0;
|
||||
queue->lock = 0; // Init the spinlock
|
||||
|
||||
#ifdef COMPILE_FOR_R5
|
||||
#ifdef __HAIKU__
|
||||
snprintf(str, sizeof(str), "%.*s_wakeup_sem",
|
||||
(int) sizeof(str) - 11, name);
|
||||
#else
|
||||
strncpy(str, name, sizeof(str) - 1);
|
||||
strncat(str, "_wakeup_sem", sizeof(str) - 1);
|
||||
str[sizeof(str) - 1] = '\0';
|
||||
#else
|
||||
snprintf(str, sizeof(str), "%.*s_wakeup_sem", (int) sizeof(str) - 11, name);
|
||||
#endif
|
||||
|
||||
queue->wakeup_sem = create_sem(0, str);
|
||||
|
Loading…
Reference in New Issue
Block a user