Skip to content

Commit 4a4294c

Browse files
authored
fix: CDV.h wasn't bringing in Cordova.h consistently (#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 458f5f3 commit 4a4294c

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

CordovaLib/include/Cordova/CDV.h

+2-1
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)