Changeset 4822
- Timestamp:
- 06/17/12 14:36:30 (11 months ago)
- Location:
- libcaca/trunk/caca
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/caca.h
r4818 r4822 688 688 # else 689 689 # 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 690 696 # endif 691 697 -
libcaca/trunk/caca/canvas.c
r4369 r4822 342 342 * (inclusive). 343 343 */ 344 static caca_timer_t timer = {0, 0}; 345 344 346 int caca_rand(int min, int max) 345 347 { … … 348 350 if(need_init) 349 351 { 350 srand(getpid() + time(NULL));352 srand(getpid() + _caca_getticks(&timer)); 351 353 need_init = 0; 352 354 } -
libcaca/trunk/caca/figfont.c
r4817 r4822 29 29 #include "caca.h" 30 30 #include "caca_internals.h" 31 32 #if defined _WIN32 && defined __GNUC__ && __GNUC__ >= 3 33 int sprintf_s(char *s, size_t n, const char *fmt, ...) CACA_WEAK; 34 #endif 31 35 32 36 struct caca_charfont … … 624 628 625 629 /* 630 * Functions for the mingw32 runtime 631 */ 632 633 #if defined _WIN32 && defined __GNUC__ && __GNUC__ >= 3 634 int sprintf_s(char *s, size_t n, const char *fmt, ...) 635 { 636 va_list args; 637 int ret; 638 va_start(args, fmt); 639 ret = vsnprintf(s, n, fmt, args); 640 va_end(args); 641 return ret; 642 } 643 #endif 644 645 /* 626 646 * XXX: The following functions are aliases. 627 647 */ -
libcaca/trunk/caca/string.c
r4819 r4822 36 36 #include "caca.h" 37 37 #include "caca_internals.h" 38 39 #if defined _WIN32 && defined __GNUC__ && __GNUC__ >= 3 40 int vsnprintf_s(char *s, size_t n, size_t c, 41 const char *fmt, va_list args) CACA_WEAK; 42 #endif 38 43 39 44 /** \brief Set cursor position. … … 597 602 return 0; 598 603 } 604 605 /* 606 * Functions for the mingw32 runtime 607 */ 608 609 #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); 613 } 614 #endif 599 615 600 616 /*
Note: See TracChangeset
for help on using the changeset viewer.
