Ignore:
Timestamp:
Jun 17, 2012, 4:05:44 PM (9 years ago)
Author:
Sam Hocevar
Message:

build: ship a weak symbol for vsnprintf, too, because our weak symbol for
sprintf_s uses that function and VS2010 does not strip it off even if it
is unused. Also do not use 64-bit integer division in the timer code because
that will create unwanted references to _moddi3 and _divdi3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/string.c

    r4822 r4823  
    3939#if defined _WIN32 && defined __GNUC__ && __GNUC__ >= 3
    4040int vsnprintf_s(char *s, size_t n, size_t c,
    41                 const char *fmt, va_list args) CACA_WEAK;
     41                const char *fmt, va_list ap) CACA_WEAK;
     42int vsnprintf(char *s, size_t n, const char *fmt, va_list ap) CACA_WEAK;
    4243#endif
    4344
     
    608609
    609610#if defined _WIN32 && defined __GNUC__ && __GNUC__ >= 3
    610 int vsnprintf_s(char *s, size_t n, size_t c, const char *fmt, va_list args)
    611 {
    612     return vsnprintf(s, n, fmt, args);
     611int vsnprintf_s(char *s, size_t n, size_t c, const char *fmt, va_list ap)
     612{
     613    return vsnprintf(s, n, fmt, ap);
     614}
     615
     616int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
     617{
     618    return 0;
    613619}
    614620#endif
Note: See TracChangeset for help on using the changeset viewer.