src/video/ataricommon/SDL_atarimxalloc.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
    36 static int atari_mxalloc_avail = -1;
    36 static int atari_mxalloc_avail = -1;
    37 
    37 
    38 /*--- Functions ---*/
    38 /*--- Functions ---*/
    39 
    39 
    40 void *
    40 void *
    41 Atari_SysMalloc (Uint32 size, Uint16 alloc_type)
    41 Atari_SysMalloc(Uint32 size, Uint16 alloc_type)
    42 {
    42 {
    43     /* Test if Mxalloc() available */
    43     /* Test if Mxalloc() available */
    44     if (atari_mxalloc_avail < 0) {
    44     if (atari_mxalloc_avail < 0) {
    45         atari_mxalloc_avail =
    45         atari_mxalloc_avail =
    46             ((Sversion () & 0xFF) >= 0x01) | (Sversion () >= 0x1900);
    46             ((Sversion() & 0xFF) >= 0x01) | (Sversion() >= 0x1900);
    47     }
    47     }
    48 
    48 
    49     if (atari_mxalloc_avail) {
    49     if (atari_mxalloc_avail) {
    50         return (void *) Mxalloc (size, alloc_type);
    50         return (void *) Mxalloc(size, alloc_type);
    51     } else {
    51     } else {
    52         return (void *) Malloc (size);
    52         return (void *) Malloc(size);
    53     }
    53     }
    54 }
    54 }
    55 
    55 
    56 /* vi: set ts=4 sw=4 expandtab: */
    56 /* vi: set ts=4 sw=4 expandtab: */