Skip to content

Commit d5c0113

Browse files
dpogueOS-kepatotorica
authored andcommitted
fix: CDV.h wasn't bringing in Cordova.h consistently (apache#1482)
The fact that there's a circular dependency between the headers isn't actually a problem in Objective-C because it uses `#import` rather than `#include` and the compiler ensures each header is only included once. Somehow that was also causing it to only evaluate the header once and not differentiate imports where the macro was defined vs not defined.
1 parent c5731e2 commit d5c0113

File tree

1 file changed

+2
-1
lines changed
  • CordovaLib/include/Cordova

1 file changed

+2
-1
lines changed

CordovaLib/include/Cordova/CDV.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919

2020
#ifndef __CORDOVA_SILENCE_HEADER_DEPRECATIONS
2121
#warning Import <Cordova/Cordova.h> rather than <Cordova/CDV.h>
22-
#import <Cordova/Cordova.h>
2322
#endif
23+
24+
#import <Cordova/Cordova.h>

0 commit comments

Comments
 (0)