summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/regex/regex.c1
-rw-r--r--libc/misc/regex/regex_internal.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/libc/misc/regex/regex.c b/libc/misc/regex/regex.c
index f63d9392f..5e09af6d9 100644
--- a/libc/misc/regex/regex.c
+++ b/libc/misc/regex/regex.c
@@ -27,7 +27,6 @@
#ifdef __UCLIBC__
#undef _LIBC
-#undef internal_function
#define _REGEX_RE_COMP
#include <stdbool.h>
#include <stdint.h>
diff --git a/libc/misc/regex/regex_internal.h b/libc/misc/regex/regex_internal.h
index 5a4d9393d..14d14da3c 100644
--- a/libc/misc/regex/regex_internal.h
+++ b/libc/misc/regex/regex_internal.h
@@ -369,7 +369,7 @@ typedef struct re_string_t re_string_t;
struct re_dfa_t;
typedef struct re_dfa_t re_dfa_t;
-#ifndef _LIBC
+#if !defined _LIBC && !defined __UCLIBC__
# ifdef __i386__
# define internal_function __attribute ((regparm (3), stdcall))
# else