]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/strftime.c
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / strftime.c
index 803c3d8cd0d8803dde4e9b5b29672274d0912f68..baaa6fbe81106c3a055ec3205c92693592f30d0c 100644 (file)
@@ -40,7 +40,7 @@
 
 
 /* Use static local variables for speed */
-#pragma staticlocals (on);
+#pragma static-locals (on);
 
 
 
@@ -135,7 +135,7 @@ size_t __fastcall__ strftime (char* buf, size_t bufsize, const char* format,
                     break;
 
                 case 'W':
-                    sprintf (arg, "%02d", 
+                    sprintf (arg, "%02d",
                              (tm->tm_yday + 7 - (tm->tm_wday? tm->tm_wday - 1 : 6)) / 7);
                     break;