Move compat/ over to libretro SDK

This commit is contained in:
twinaphex 2014-10-21 07:58:58 +02:00
parent abb35ec8ce
commit 7472922ee0
48 changed files with 64 additions and 427 deletions

View File

@ -115,7 +115,7 @@ OBJ += frontend/frontend.o \
patch.o \
fifo_buffer.o \
core_options.o \
compat/compat.o \
libretro-sdk/compat/compat.o \
cheats.o \
core_info.o \
conf/config_file.o \
@ -633,5 +633,5 @@ JOYCONFIG_OBJ += tools/retroarch-joyconfig.o \
conf/config_file.o \
file_path.o \
string_list.o \
compat/compat.o \
libretro-sdk/compat/compat.o \
tools/input_common_joyconfig.o

View File

@ -22,7 +22,7 @@
#include "filters/dspfilter.h"
#include "../file_path.h"
#include "../file_ext.h"
#include "../compat/posix_string.h"
#include <compat/posix_string.h>
#include <stdlib.h>

View File

@ -24,9 +24,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include "../../compat/msvc_compat.h"
#endif
#include <compat/posix_string.h>
#if !defined(RESAMPLER_TEST) && defined(RARCH_INTERNAL)
#include "../../general.h"

View File

@ -20,7 +20,7 @@
#include "xaudio-c.h"
#include <stdint.h>
#include <stdio.h>
#include "../../compat/msvc_compat.h"
#include <compat/msvc.h>
#include <boolean.h>
#define MAX_BUFFERS 16

View File

@ -34,7 +34,7 @@
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include "../compat/strl.h"
#include <compat/strl.h>
#include <asm/types.h>
#include <linux/videodev2.h>

View File

@ -17,8 +17,8 @@
#include "hash.h"
#include "dynamic.h"
#include "general.h"
#include "compat/strl.h"
#include "compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"

View File

@ -1,37 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (apple_compat.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifdef IOS
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#endif
#endif

View File

@ -1,30 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (compat_fnmatch.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_FNMATCH_H__
#define __LIBRETRO_SDK_COMPAT_FNMATCH_H__
#define FNM_NOMATCH 1
int rl_fnmatch(const char *pattern, const char *string, int flags);
#endif

View File

@ -1,66 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (compat_getopt.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_GETOPT_H
#define __LIBRETRO_SDK_COMPAT_GETOPT_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Custom implementation of the GNU getopt_long for portability.
* Not designed to be fully compatible, but compatible with
* the features RetroArch uses. */
#ifdef HAVE_GETOPT_LONG
#include <getopt.h>
#else
/* Avoid possible naming collisions during link since we
* prefer to use the actual name. */
#define getopt_long(argc, argv, optstring, longopts, longindex) __getopt_long_rarch(argc, argv, optstring, longopts, longindex)
#ifdef __cplusplus
extern "C" {
#endif
struct option
{
const char *name;
int has_arg;
int *flag;
int val;
};
/* argv[] is declared with char * const argv[] in GNU,
* but this makes no sense, as non-POSIX getopt_long
* mutates argv (non-opts are moved to the end). */
int getopt_long(int argc, char *argv[],
const char *optstring, const struct option *longopts, int *longindex);
extern char *optarg;
extern int optind, opterr, optopt;
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -1,74 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (msvc_compat.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_MSVC_H
#define __LIBRETRO_SDK_COMPAT_MSVC_H
#ifdef _MSC_VER
#undef UNICODE /* Do not bother with UNICODE at this time. */
#include <direct.h>
#include <stddef.h>
#include <math.h>
/* Python headers defines ssize_t and sets HAVE_SSIZE_T.
* Cannot duplicate these efforts.
*/
#ifndef HAVE_SSIZE_T
#if defined(_WIN64)
typedef __int64 ssize_t;
#elif defined(_WIN32)
typedef int ssize_t;
#endif
#endif
#define mkdir(dirname, unused) _mkdir(dirname)
#define snprintf _snprintf
#define strtoull _strtoui64
#undef strcasecmp
#define strcasecmp _stricmp
#undef strncasecmp
#define strncasecmp _strnicmp
/* Disable some of the annoying warnings. */
#pragma warning(disable : 4800)
#pragma warning(disable : 4805)
#pragma warning(disable : 4244)
#pragma warning(disable : 4305)
#pragma warning(disable : 4146)
#pragma warning(disable : 4267)
#pragma warning(disable : 4723)
#pragma warning(disable : 4996)
#define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f))
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
#ifndef SIZE_MAX
#define SIZE_MAX _UI32_MAX
#endif
#endif
#endif

View File

@ -1,53 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (posix_string.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_POSIX_STRING_H
#define __LIBRETRO_SDK_COMPAT_POSIX_STRING_H
#ifdef _WIN32
#include "msvc_compat.h"
#ifdef __cplusplus
extern "C" {
#endif
#undef strcasecmp
#undef strdup
#undef isblank
#undef strtok_r
#define strcasecmp(a, b) rarch_strcasecmp__(a, b)
#define strdup(orig) rarch_strdup__(orig)
#define isblank(c) rarch_isblank__(c)
#define strtok_r(str, delim, saveptr) rarch_strtok_r__(str, delim, saveptr)
int strcasecmp(const char *a, const char *b);
char *strdup(const char *orig);
int isblank(int c);
char *strtok_r(char *str, const char *delim, char **saveptr);
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -1,50 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (strcasestr.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_STRCASESTR_H
#define __LIBRETRO_SDK_COMPAT_STRCASESTR_H
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#ifndef HAVE_STRCASESTR
#ifdef __cplusplus
extern "C" {
#endif
/* Avoid possible naming collisions during link
* since we prefer to use the actual name. */
#define strcasestr(haystack, needle) strcasestr_rarch__(haystack, needle)
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -1,50 +0,0 @@
/* Copyright (C) 2010-2014 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (strl.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_COMPAT_STRL_H
#define __LIBRETRO_SDK_COMPAT_STRL_H
#include <string.h>
#include <stddef.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#ifndef HAVE_STRL
#ifdef __cplusplus
extern "C" {
#endif
/* Avoid possible naming collisions during link since
* we prefer to use the actual name. */
#define strlcpy(dst, src, size) strlcpy_rarch__(dst, src, size)
#define strlcat(dst, src, size) strlcat_rarch__(dst, src, size)
size_t strlcpy(char *dest, const char *source, size_t size);
size_t strlcat(char *dest, const char *source, size_t size);
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -19,9 +19,9 @@
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include "../compat/strl.h"
#include "../compat/posix_string.h"
#include "../compat/msvc_compat.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <compat/msvc.h>
#include "../file.h"
#include "../file_path.h"
#include "../general.h"

View File

@ -18,8 +18,8 @@
#include "conf/config_file.h"
#include "file.h"
#include "dir_list.h"
#include "compat/posix_string.h"
#include "compat/strl.h"
#include <compat/posix_string.h>
#include <compat/strl.h>
struct core_option
{

View File

@ -16,13 +16,13 @@
#include "dir_list.h"
#include "file_path.h"
#include "compat/strl.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#if defined(_WIN32)
#ifdef _MSC_VER
#define setmode _setmode
#endif
#include "compat/msvc_compat.h"
#ifdef _XBOX
#include <xtl.h>
#define INVALID_FILE_ATTRIBUTES -1

View File

@ -23,7 +23,7 @@
#include "libretro_private.h"
#include <stdlib.h>
#include <stdint.h>
#include "compat/msvc_compat.h"
#include <compat/msvc.h>
#include "gfx/scaler/scaler.h"
#include "gfx/image/image.h"
#include "gfx/filters/softfilter.h"

View File

@ -15,8 +15,8 @@
#include "dynamic.h"
#include "general.h"
#include "compat/strl.h"
#include "compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "retroarch_logger.h"
#include "performance.h"
#include "file.h"

View File

@ -17,7 +17,7 @@
#include "file.h"
#include "file_path.h"
#include "string_list.h"
#include "compat/strl.h"
#include <compat/strl.h>
#include "general.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -17,8 +17,8 @@
#include <stdlib.h>
#include <string.h>
#include "file_list.h"
#include "compat/strcasestr.h"
#include "compat/msvc_compat.h"
#include <compat/strcasestr.h>
#include <compat/posix_string.h>
void file_list_push(file_list_t *list,
const char *path, const char *label,

View File

@ -20,8 +20,8 @@
#include <string.h>
#include <time.h>
#include <errno.h>
#include "compat/strl.h"
#include "compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "miscellaneous.h"
#ifdef __HAIKU__

View File

@ -29,7 +29,7 @@
#include "../../../file_path.h"
#include "../../../gfx/gl_common.h"
#include "../../../gfx/video_thread_wrapper.h"
#include "../../../compat/posix_string.h"
#include <compat/posix_string.h>
#include "../../../settings_data.h"

View File

@ -29,7 +29,7 @@
#include "../../../file_path.h"
#include "../../../gfx/gl_common.h"
#include "../../../gfx/video_thread_wrapper.h"
#include "../../../compat/posix_string.h"
#include <compat/posix_string.h>
#include "../../../settings_data.h"

View File

@ -27,7 +27,7 @@
#include "../../../general.h"
#include "../../../config.def.h"
#include "../../../dynamic.h"
#include "../../../compat/posix_string.h"
#include <compat/posix_string.h>
#include "../../../file_path.h"
#include "../../../settings_data.h"

View File

@ -28,7 +28,7 @@
#include "../../../file_path.h"
#include "../../../gfx/gl_common.h"
#include "../../../gfx/video_thread_wrapper.h"
#include "../../../compat/posix_string.h"
#include <compat/posix_string.h>
#include "shared.h"
#include "../menu_animation.h"

View File

@ -18,7 +18,6 @@
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "../../compat/msvc_compat.h"
#include <boolean.h>
#define ATLAS_COLS 16

View File

@ -39,7 +39,7 @@
#include "gl_common.h"
#include "gfx_common.h"
#include "gfx_context.h"
#include "../compat/strl.h"
#include <compat/strl.h>
#ifdef HAVE_GLSL
#include "shader/shader_glsl.h"

View File

@ -22,8 +22,8 @@
#include "../../dynamic.h"
#include "../../libretro.h"
#include "../../general.h"
#include "../../compat/strl.h"
#include "../../compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "../../input/input_common.h"
#include "../../file.h"
#include "../../file_path.h"

View File

@ -31,10 +31,10 @@
#include "../../general.h"
#include <string.h>
#include "../../compat/strl.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "../../conf/config_file.h"
#include "../../dynamic.h"
#include "../../compat/posix_string.h"
#include "../../file.h"
#include "../../file_path.h"

View File

@ -16,8 +16,8 @@
#include <string.h>
#include "../../general.h"
#include "shader_glsl.h"
#include "../../compat/strl.h"
#include "../../compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "../state_tracker.h"
#include "../../dynamic.h"
#include "../../file.h"

View File

@ -17,8 +17,8 @@
#include <boolean.h>
#include <string.h>
#include "../../general.h"
#include "../../compat/strl.h"
#include "../../compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "../state_tracker.h"
#include "../../dynamic.h"
#include "../../file.h"

View File

@ -16,11 +16,11 @@
#include <stdlib.h>
#include <string.h>
#include "shader_parse.h"
#include "../../compat/posix_string.h"
#include "../../compat/msvc_compat.h"
#include <compat/posix_string.h>
#include <compat/msvc.h>
#include <compat/strl.h>
#include "../../file.h"
#include "../../file_path.h"
#include "../../compat/strl.h"
#include "../../general.h"
#define print_buf(buf, ...) snprintf(buf, sizeof(buf), __VA_ARGS__)

View File

@ -15,7 +15,7 @@
#include "state_tracker.h"
#include <stdlib.h>
#include "../compat/strl.h"
#include <compat/strl.h>
#include "../general.h"
#include "../libretro.h"
#include "../input/input_common.h"

2
hash.h
View File

@ -43,7 +43,7 @@
#include <stdint.h>
#include <stddef.h>
#include "compat/msvc_compat.h"
#include <compat/msvc.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

View File

@ -19,7 +19,7 @@
#include "../libretro.h"
#include "../gfx/image/image.h"
#include "../conf/config_file.h"
#include "../compat/posix_string.h"
#include <compat/posix_string.h>
#include "input_common.h"
#include "../file.h"
#include "../file_path.h"

View File

@ -20,10 +20,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "compat_getopt.h"
#include "strl.h"
#include "strcasestr.h"
#include "posix_string.h"
#include <compat/getopt.h>
#include <compat/strl.h>
#include <compat/strcasestr.h>
#include <compat/posix_string.h>
#ifndef HAVE_GETOPT_LONG
@ -33,7 +33,7 @@
#include <stdlib.h>
#include <ctype.h>
#ifdef _MSC_VER
#include "msvc_compat.h"
#include <compat/msvc.h>
#endif
char *optarg;

View File

@ -24,7 +24,7 @@
#include <assert.h>
#endif
#include "compat_fnmatch.h"
#include <compat/fnmatch.h>
/* Implemnentation of fnmatch(3) so it can be
* distributed to non *nix platforms.

View File

@ -22,7 +22,7 @@
#endif
#include <stdarg.h>
#include "../compat/msvc_compat.h"
#include <compat/posix_string.h>
// FIXME: Using arbitrary string as fmt argument is unsafe.
static inline void RARCH_LOG_V(const char *tag, const char *fmt, va_list ap)

View File

@ -35,7 +35,7 @@
#elif defined(_WIN32) && defined(_XBOX)
#include <Xtl.h>
#endif
#include "compat/msvc_compat.h"
#include <compat/msvc.h>
#include "retroarch_logger.h"
#include "endianness.h"

View File

@ -19,7 +19,7 @@
#include "patch.h"
#include "hash.h"
#include <boolean.h>
#include "compat/msvc_compat.h"
#include <compat/msvc.h>
#include <stdint.h>
#include <string.h>

View File

@ -16,7 +16,7 @@
*/
#include "playlist.h"
#include "compat/posix_string.h"
#include <compat/posix_string.h>
#include "boolean.h"
#include "file.h"

View File

@ -1,5 +1,5 @@
#include "rgl_cg.h"
#include "../../../compat/strl.h"
#include <compat/strl.h>
static CGbool rglpSupportsVertexProgram( CGprofile p )
{

View File

@ -13,7 +13,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "../compat/msvc_compat.h"
#include <compat/msvc.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"

View File

@ -28,12 +28,12 @@
#include "file_path.h"
#include "general.h"
#include "dynamic.h"
#include "compat/strl.h"
#include <compat/strl.h>
#include "screenshot.h"
#include "performance.h"
#include "cheats.h"
#include "compat/compat_getopt.h"
#include "compat/posix_string.h"
#include <compat/getopt.h>
#include <compat/posix_string.h>
#include "input/keyboard_line.h"
#include "input/input_common.h"
#include "git_version.h"

View File

@ -13,7 +13,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "compat/strl.h"
#include <compat/strl.h>
#include <stdio.h>
#include <stddef.h>
#include <time.h>

View File

@ -16,11 +16,11 @@
#include "general.h"
#include "conf/config_file.h"
#include "conf/config_file_macros.h"
#include "compat/strl.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "config.def.h"
#include "file.h"
#include "file_path.h"
#include "compat/posix_string.h"
#include "input/input_common.h"
#include "frontend/frontend.h"

View File

@ -18,8 +18,8 @@
#include "string_list.h"
#include <string.h>
#include "miscellaneous.h"
#include "compat/strl.h"
#include "compat/posix_string.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
void string_list_free(struct string_list *list)
{

View File

@ -20,12 +20,12 @@
#include "conf/config_file.h"
#include <stdio.h>
#include <stdlib.h>
#include "../compat/compat_getopt.h"
#include <compat/getopt.h>
#include <compat/posix_string.h>
#include <boolean.h>
#include "../input/input_common.h"
#include "../general.h"
#include <assert.h>
#include "../compat/posix_string.h"
/* Need to be present for build to work, but it's not *really* used.
* Better than having to build special versions of lots of objects