src/file/cocoa/SDL_rwopsbundlesupport.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 15 Mar 2014 19:30:52 -0700
changeset 8627 704a0bfecf75
parent 8616 ec011c16e2fd
child 9619 b94b6d0bff0f
permissions -rw-r--r--
Fixed iOS build
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8616
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     1
/*
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     2
  Simple DirectMedia Layer
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     4
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     5
  This software is provided 'as-is', without any express or implied
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     7
  arising from the use of this software.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     8
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    11
  freely, subject to the following restrictions:
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    12
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    14
     claim that you wrote the original software. If you use this software
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    16
     appreciated but is not required.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    18
     misrepresented as being the original software.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    20
*/
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 4447
diff changeset
    21
8627
704a0bfecf75 Fixed iOS build
Sam Lantinga <slouken@libsdl.org>
parents: 8616
diff changeset
    22
#ifdef __APPLE__
4447
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    23
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    24
#include <stdio.h>
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    25
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    26
#ifndef SDL_rwopsbundlesupport_h
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    27
#define SDL_rwopsbundlesupport_h
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    28
FILE* SDL_OpenFPFromBundleOrFallback(const char *file, const char *mode);
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    29
#endif
947201caa46e Added automated test to Xcode project plus needed changes to SDL_RWFromFile to be OS X bundle aware.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
    30
#endif