Ignore:
Timestamp:
Jun 17, 2012, 12:32:45 AM (8 years ago)
Author:
sam
Message:

build: a few hacks to allow building with MinGW on Windows.

File:
1 edited

Legend:

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

    r100 r1486  
    1212
    1313#include <caca.h>
     14
     15/* FIXME: ugly MinGW hack */
     16#if defined _WIN32 && defined __GNUC__
     17extern "C"
     18{
     19int 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
     29int 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
     34int _time32(__time32_t *timer)
     35{
     36    return 0;
     37}
     38}
     39#endif
    1440
    1541int main(void)
Note: See TracChangeset for help on using the changeset viewer.