libwinpr-interlocked: fix iOS build

This commit is contained in:
Marc-André Moreau 2013-02-15 10:33:21 -05:00
parent b1bba57009
commit 0dc52e219c
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# XCode files
DerivedData
project.xcworkspace/
xcuserdata/
bin/

View File

@ -23,9 +23,15 @@
#include <winpr/spec.h>
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
#include <winpr/platform.h>
#ifndef _WIN32
/* workaround for SLIST_ENTRY conflict */
#include <sys/queue.h>
#undef SLIST_ENTRY
#ifndef CONTAINING_RECORD
#define CONTAINING_RECORD(address, type, field) \
((type *)(((ULONG_PTR) address) - (ULONG_PTR)(&(((type *) 0)->field))))