Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move PRI_TIMET_PREFIX definition into ruby.h

  • Loading branch information...
commit 3405fc02c4eb48fc021a32b8b6af2218f757f34b 1 parent cae1c30
@Watson1978 Watson1978 authored
Showing with 2 additions and 2 deletions.
  1. +2 −0  include/ruby/ruby.h
  2. +0 −2  strftime.c
View
2  include/ruby/ruby.h
@@ -67,6 +67,7 @@ typedef unsigned long VALUE;
# define PRIuVALUE "lu"
# define PRIxVALUE "lx"
# define PRIXVALUE "lX"
+# define PRI_TIMET_PREFIX "l"
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
typedef unsigned LONG_LONG VALUE;
typedef unsigned LONG_LONG ID;
@@ -79,6 +80,7 @@ typedef unsigned LONG_LONG ID;
# define PRIuVALUE "llu"
# define PRIxVALUE "llx"
# define PRIXVALUE "llX"
+# define PRI_TIMET_PREFIX "ll"
#else
# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
#endif
View
2  strftime.c
@@ -66,8 +66,6 @@
#endif
#include <math.h>
-#define PRI_TIMET_PREFIX "l"
-
/* defaults: season to taste */
#define SYSV_EXT 1 /* stuff in System V ascftime routine */
#define SUNOS_EXT 1 /* stuff in SunOS strftime routine */
Please sign in to comment.
Something went wrong with that request. Please try again.