]> gitweb @ CieloNegro.org - bindings-apr.git/blobdiff - cbits/helper_apr_time.c
C string macros should be treated as global arrays.
[bindings-apr.git] / cbits / helper_apr_time.c
index 54e0f3748cdd06dd910152935ccdf756e9d4e861..6adb6cfeaf6276c246986c0b25e16c6205345600 100644 (file)
@@ -1,13 +1,7 @@
 #include <bindings.cmacros.h>
 #include <apr_time.h>
 
-const char (*array_apr_month_snames(void))[12][4] {
-    return &apr_month_snames;
-}
-
-const char (*array_apr_day_snames(void))[7][4] {
-    return &apr_day_snames;
-}
+BC_GLOBALARRAY(APR_TIME_T_FMT, char)
 
 BC_INLINE1(apr_time_sec , apr_time_t, apr_time_t)
 BC_INLINE1(apr_time_usec, apr_time_t, apr_time_t)