avoid some issues with c++ and X11
This commit is contained in:
@@ -465,6 +465,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
|
||||
* function will cause a link failure on non-Unix platforms,
|
||||
* so it is preferrable to catch it early, during compile.
|
||||
*/
|
||||
#if !defined(X11_BUILD) && !defined(__cplusplus)
|
||||
#if defined(__GNUC__) && !defined(__CLANG__)
|
||||
#if __GNUC__ >= 12
|
||||
extern char *index(const char *s, int c) __attribute__ ((unavailable));
|
||||
@@ -477,6 +478,7 @@ extern char *index(const char *s, int c) __attribute__ ((unavailable));
|
||||
extern char *rindex(const char *s, int c) __attribute__ ((unavailable));
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* TRADSTDC_H */
|
||||
|
||||
Reference in New Issue
Block a user