Skip to content
Snippets Groups Projects
Commit cdf60e8b authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[libc] make static local to avoid issues with PathCrawler

PathCrawler's instrumentation fails to compile if the static global variables
are conditionally declared, since it does not use '-D__FRAMAC__' due to
incompatibilities.
parent 1536da31
No related branches found
No related tags found
No related merge requests found
......@@ -272,13 +272,11 @@ char *strstr(const char *haystack, const char *needle)
}
char __fc_strerror[64];
#ifdef __FRAMAC__
static int __fc_strerror_init;
#endif
char *strerror(int errnum)
{
#ifdef __FRAMAC__
static int __fc_strerror_init;
if (!__fc_strerror_init) {
Frama_C_make_unknown(__fc_strerror, 63);
__fc_strerror[63] = 0;
......@@ -320,13 +318,11 @@ char *strndup(const char *s, size_t n)
}
char __fc_strsignal[64];
#ifdef __FRAMAC__
static int __fc_strsignal_init;
#endif
char *strsignal(int signum)
{
#ifdef __FRAMAC__
static int __fc_strsignal_init;
if (!__fc_strsignal_init) {
Frama_C_make_unknown(__fc_strsignal, 63);
__fc_strsignal[63] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment