summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ungol.org>2020-03-30 15:41:58 -0400
committerJakob Kaivo <jkk@ungol.org>2020-03-30 15:41:58 -0400
commit571213d02a67de04d8322f30c73a2296693b59d5 (patch)
tree666a13305bc422d48074c6b45ce9bd5c37cea02c
parent6c3c6d58252c9780607ff6a4d578517a6e32e5ed (diff)
move regoff_t above where it is used
-rw-r--r--regex.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/regex.h b/regex.h
index 381ebc2..cdf18e7 100644
--- a/regex.h
+++ b/regex.h
@@ -87,6 +87,11 @@ SOFTWARE.
#endif
#if (defined _POSIX_C_SOURCE && 2 <= _POSIX_C_SOURCE)
+/* ./src/regex/regoff_t.c */
+#ifndef __TYPE_regoff_t_DEFINED__
+#define __TYPE_regoff_t_DEFINED__
+typedef long long int regoff_t;
+
/* ./src/regex/regex_t.c */
#ifndef __TYPE_regex_t_DEFINED__
#define __TYPE_regex_t_DEFINED__
@@ -103,11 +108,6 @@ typedef struct {
regoff_t rm_eo;
} regmatch_t;
#endif
-
-/* ./src/regex/regoff_t.c */
-#ifndef __TYPE_regoff_t_DEFINED__
-#define __TYPE_regoff_t_DEFINED__
-typedef long long int regoff_t;
#endif
#endif