Skip to content

Commit 533399e

Browse files
committed
Remove unused macro _TESS_FILE_BASENAME
This fixes a compiler warning from clang: ccutil/platform.h:88:13: warning: macro name is a reserved identifier [-Wreserved-id-macro] #define _TESS_FILE_BASENAME_ \ Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 70c6f16 commit 533399e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ccutil/platform.h

-8
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,4 @@
8181
#endif
8282
#endif
8383

84-
#if defined(_WIN32) || defined(__CYGWIN__)
85-
#define _TESS_FILE_BASENAME_ \
86-
(strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
87-
#else // Unices
88-
#define _TESS_FILE_BASENAME_ \
89-
(strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
90-
#endif
91-
9284
#endif // TESSERACT_CCUTIL_PLATFORM_H_

0 commit comments

Comments
 (0)