Ignore:
Timestamp:
Jun 17, 2012, 2:41:40 PM (8 years ago)
Author:
sam
Message:

build: import new libcaca binaries (from r4822) so that we no longer need
to provide sprintf_s and others when building with mingw32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/make-font.cpp

    r1486 r1490  
    1212
    1313#include <caca.h>
    14 
    15 /* FIXME: ugly MinGW hack */
    16 #if defined _WIN32 && defined __GNUC__
    17 extern "C"
    18 {
    19 int sprintf_s(char *s, size_t n, const char *fmt, ...)
    20 {
    21     va_list args;
    22     int ret;
    23     va_start(args, fmt);
    24     ret = vsnprintf(s, n, fmt, args);
    25     va_end(args);
    26     return ret;
    27 }
    28 
    29 int vsnprintf_s(char *s, size_t n, size_t c, const char *fmt, va_list args)
    30 {
    31     return vsnprintf(s, n, fmt, args);
    32 }
    33 
    34 int _time32(__time32_t *timer)
    35 {
    36     return 0;
    37 }
    38 }
    39 #endif
    4014
    4115int main(void)
Note: See TracChangeset for help on using the changeset viewer.