Xcode compile error with PostgreSQL headers -
i trying include following postgresql headers files xcode 7.2 project:
#import "postgres.h" #import "pg_type.h" #import "libpq-fe.h" the app written in swift. have objective-c bridging header. if import "libpq-fe.h" there no compile errors.
when try import "postgres.h" , "pg_types.h" access constants, error postgresql file: "c.h"
"typedef redefinition different types ('size_t' (aka 'unsigned long') vs 'long')
the previous definition in os x 10.11 > user/include > mactypes.h
so there 2 headers same definition:
postgresql c.h
typedef size_t size osx mactypes.h
typedef long size if comment out definition in postgresql file project compiles. rather not have that.
does know way around this?
i read somewhere using 'backend header' far have not been able figure out.
thanks in advance.
Comments
Post a Comment