comparison src/video/maccommon/SDL_macwm.c @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents c9b51268668f
children 604d73db6802
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
37 void Mac_SetCaption(_THIS, const char *title, const char *icon) 37 void Mac_SetCaption(_THIS, const char *title, const char *icon)
38 { 38 {
39 /* Don't convert C to P string in place, because it may be read-only */ 39 /* Don't convert C to P string in place, because it may be read-only */
40 Str255 ptitle; /* MJS */ 40 Str255 ptitle; /* MJS */
41 ptitle[0] = strlen (title); 41 ptitle[0] = strlen (title);
42 memcpy(ptitle+1, title, ptitle[0]); /* MJS */ 42 SDL_memcpy(ptitle+1, title, ptitle[0]); /* MJS */
43 if (SDL_Window) 43 if (SDL_Window)
44 SetWTitle(SDL_Window, ptitle); /* MJS */ 44 SetWTitle(SDL_Window, ptitle); /* MJS */
45 } 45 }