Ignore:
Timestamp:
06/17/12 14:36:30 (11 months ago)
Author:
sam
Message:

win32: define a custom sprintf_s() weak symbol. The VS2010 runtime does not
provide the deprecated snprintf(). The mingw32 runtime does not provide the
MS-specific sprintf_s(). Mingw-w64 copes with both. So we switch to sprintf_s
but also provide it as a weak symbol so that mingw32 does not complain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r4818 r4822  
    688688#   else 
    689689#       define CACA_ALIAS(x) 
     690#   endif 
     691 
     692#   if defined __GNUC__ && __GNUC__ > 3 
     693#       define CACA_WEAK __attribute__ ((weak)) 
     694#   else 
     695#       define CACA_WEAK 
    690696#   endif 
    691697 
Note: See TracChangeset for help on using the changeset viewer.