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 # XCode files
DerivedData
project.xcworkspace/ project.xcworkspace/
xcuserdata/ xcuserdata/
bin/ bin/

View File

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