Skip to content

Commit 75d6207

Browse files
author
Kirill Makankov
committed
NS_DESIGNATED_INITIALIZER macro definition for SDK7
1 parent 9c1a32c commit 75d6207

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TesseractOCR/G8Constants.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
#ifndef Tesseract_OCR_iOS_G8Constants_h
1313
#define Tesseract_OCR_iOS_G8Constants_h
1414

15+
#ifndef NS_DESIGNATED_INITIALIZER
16+
#if __has_attribute(objc_designated_initializer)
17+
#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
18+
#else
19+
#define NS_DESIGNATED_INITIALIZER
20+
#endif
21+
#endif
22+
1523
/**
1624
* Possible modes for page layout analysis.
1725
*/

0 commit comments

Comments
 (0)