]> git.saurik.com Git - apple/security.git/blobdiff - Analytics/SQLite/SFSQLite.h
Security-58286.60.28.tar.gz
[apple/security.git] / Analytics / SQLite / SFSQLite.h
index cb6a80df7b54a9ad578d1e545a044042695718dc..4eda2730202e6de3c8b272edf3d74f52798477d2 100644 (file)
@@ -23,6 +23,8 @@
 
 // Header exposed for unit testing only
 
+#if __OBJC2__
+
 #import <Foundation/Foundation.h>
 #import <sqlite3.h>
 
@@ -39,7 +41,7 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) {
     SFSQLiteSynchronousModeFull = 2
 };
 
-@protocol SFSQLiteDelegate
+@protocol SFSQLiteDelegate <NSObject>
 @property (nonatomic, readonly) SInt32 userVersion;
 
 - (BOOL)migrateDatabase:(SFSQLite *)db fromVersion:(SInt32)version;
@@ -47,6 +49,7 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) {
 
 // Wrapper around the SQLite API. Typically subclassed to add table accessor methods.
 @interface SFSQLite : NSObject {
+@private
     id<SFSQLiteDelegate> _delegate;
     NSString* _path;
     NSString* _schema;
@@ -147,3 +150,5 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) {
 - (SInt32)dbUserVersion;
 
 @end
+
+#endif