Skip to content

Commit

Permalink
Initial changes to support ImageIO on iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wing committed Jan 31, 2011
1 parent 94c327a commit bf1abd1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions IMG_ImageIO.c
Expand Up @@ -11,10 +11,17 @@

#include "SDL_image.h"

// For ImageIO framework and also LaunchServices framework (for UTIs)
#include <ApplicationServices/ApplicationServices.h>
// Used because CGDataProviderCreate became deprecated in 10.5
#include <AvailabilityMacros.h>
#include <TargetConditionals.h>

#if (TARGET_OS_IPHONE == 1) || (TARGET_IPHONE_SIMULATOR == 1)
#import <MobileCoreServices/MobileCoreServices.h> // for UTCoreTypes.h
#import <ImageIO/ImageIO.h>
#else
// For ImageIO framework and also LaunchServices framework (for UTIs)
#include <ApplicationServices/ApplicationServices.h>
#endif

/**************************************************************
***** Begin Callback functions for block reading *************
Expand Down

0 comments on commit bf1abd1

Please sign in to comment.