src/compat.h
author Ozkan Sezer
Wed, 18 Dec 2019 18:55:56 +0300
changeset 1098 3be892f72aa7
parent 1012 7642e4258f8e
child 1129 888c7be704ce
permissions -rw-r--r--
fix build.
sezeroz@1012
     1
/*
sezeroz@1012
     2
  SDL_mixer:  An audio mixer library based on the SDL library
sezeroz@1012
     3
  Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
sezeroz@1012
     4
sezeroz@1012
     5
  This software is provided 'as-is', without any express or implied
sezeroz@1012
     6
  warranty.  In no event will the authors be held liable for any damages
sezeroz@1012
     7
  arising from the use of this software.
sezeroz@1012
     8
sezeroz@1012
     9
  Permission is granted to anyone to use this software for any purpose,
sezeroz@1012
    10
  including commercial applications, and to alter it and redistribute it
sezeroz@1012
    11
  freely, subject to the following restrictions:
sezeroz@1012
    12
sezeroz@1012
    13
  1. The origin of this software must not be misrepresented; you must not
sezeroz@1012
    14
     claim that you wrote the original software. If you use this software
sezeroz@1012
    15
     in a product, an acknowledgment in the product documentation would be
sezeroz@1012
    16
     appreciated but is not required.
sezeroz@1012
    17
  2. Altered source versions must be plainly marked as such, and must not be
sezeroz@1012
    18
     misrepresented as being the original software.
sezeroz@1012
    19
  3. This notice may not be removed or altered from any source distribution.
sezeroz@1012
    20
*/
sezeroz@1012
    21
sezeroz@1012
    22
#ifndef COMPAT_H_
sezeroz@1012
    23
#define COMPAT_H_
sezeroz@1012
    24
sezeroz@1012
    25
#include "SDL.h"
sezeroz@1012
    26
sezeroz@1012
    27
#if SDL_VERSION_ATLEAST(2,0,12)
sezeroz@1012
    28
#define HAVE_SDL_STRTOKR
sezeroz@1012
    29
#else
sezeroz@1012
    30
#define SDL_strtokr _MIX_strtokr
sezeroz@1012
    31
extern char *SDL_strtokr(char *s1, const char *s2, char **saveptr);
sezeroz@1012
    32
#endif
sezeroz@1012
    33
sezeroz@1012
    34
#endif /* COMPAT_H_ */