Ignore:
Timestamp:
Sep 13, 2011, 7:19:11 PM (9 years ago)
Author:
sam
Message:

build: fix Win64 compilation with mingw64, using an updated SDL build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/image/image.cpp

    r939 r950  
    1717#if defined __APPLE__ && defined __MACH__
    1818#   import <UIKit/UIKit.h>
    19 #elif defined USE_SDL
     19#elif defined USE_SDL_IMAGE
    2020#   include <SDL.h>
    2121#   include <SDL_image.h>
     
    5454#if defined __APPLE__ && defined __MACH__
    5555    uint8_t *pixels;
    56 #elif defined USE_SDL
     56#elif defined USE_SDL_IMAGE
    5757    SDL_Surface *img;
    5858#elif defined __ANDROID__
     
    110110    [image release];
    111111    [pngdata release];
    112 #elif defined USE_SDL
     112#elif defined USE_SDL_IMAGE
    113113    for (char const *name = path; *name; name++)
    114114        if ((data->img = IMG_Load(name)))
     
    335335#if defined __APPLE__ && defined __MACH__
    336336    return data->pixels;
    337 #elif defined USE_SDL
     337#elif defined USE_SDL_IMAGE
    338338    return data->img->pixels;
    339339#elif defined __ANDROID__
     
    350350#if defined __APPLE__ && defined __MACH__
    351351    free(data->pixels);
    352 #elif defined USE_SDL
     352#elif defined USE_SDL_IMAGE
    353353    SDL_FreeSurface(data->img);
    354354#elif defined __ANDROID__
Note: See TracChangeset for help on using the changeset viewer.