mirror of
https://github.com/izzy2lost/perfect_dark.git
synced 2026-10-26 20:45:25 -07:00
Android: * compileSdk/targetSdk 34 -> 36, minSdk 21 -> 30, ANDROID_PLATFORM android-30 * pin ndkVersion 27.2.12479018, AGP 8.1.2 -> 9.2.1, Gradle 8.0 -> 9.4.1 (Gradle 9.x is what runs on the JDK 25 that Android Studio now ships) * Java 8 -> 17, javac encoding pinned to UTF-8 * drop the x86 ABI: no 32-bit x86 devices exist at minSdk 30, and it was a third of the native build time * refresh AndroidX dependencies Fixes found while getting the above to build: * AssetUtils invoked a bare `python` on Windows and Android, which does not exist on distros that only ship `python3`. Use the interpreter CMake finds, on every platform. * os_libc.h re-declared bcopy/bcmp/bzero, which clashes with bionic's fortified overloadable versions; include <strings.h> on Android instead, the same way OSX is already special-cased. * libultra.c defined those same wrappers, which bionic already provides. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
116 lines
2.8 KiB
C
116 lines
2.8 KiB
C
|
|
/*====================================================================
|
|
* os_libc.h
|
|
*
|
|
* Copyright 1995, Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics,
|
|
* Inc.; the contents of this file may not be disclosed to third
|
|
* parties, copied or duplicated in any form, in whole or in part,
|
|
* without the prior written permission of Silicon Graphics, Inc.
|
|
*
|
|
* RESTRICTED RIGHTS LEGEND:
|
|
* Use, duplication or disclosure by the Government is subject to
|
|
* restrictions as set forth in subdivision (c)(1)(ii) of the Rights
|
|
* in Technical Data and Computer Software clause at DFARS
|
|
* 252.227-7013, and/or in similar or successor clauses in the FAR,
|
|
* DOD or NASA FAR Supplement. Unpublished - rights reserved under the
|
|
* Copyright Laws of the United States.
|
|
*====================================================================*/
|
|
|
|
/*---------------------------------------------------------------------*
|
|
Copyright (C) 1998 Nintendo. (Originated by SGI)
|
|
|
|
$RCSfile: os_libc.h,v $
|
|
$Revision: 1.1 $
|
|
$Date: 1998/10/09 08:01:14 $
|
|
*---------------------------------------------------------------------*/
|
|
|
|
#ifndef _OS_LIBC_H_
|
|
#define _OS_LIBC_H_
|
|
|
|
#include "os_pfs.h"
|
|
#include "platform.h"
|
|
|
|
#ifndef PLATFORM_N64
|
|
#include <stdio.h>
|
|
#endif
|
|
#ifdef PLATFORM_OSX
|
|
#include <strings.h>
|
|
#endif
|
|
|
|
#ifdef _LANGUAGE_C_PLUS_PLUS
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <PR/ultratypes.h>
|
|
|
|
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Type definitions
|
|
*
|
|
*/
|
|
|
|
|
|
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Global definitions
|
|
*
|
|
*/
|
|
|
|
|
|
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Macro definitions
|
|
*
|
|
*/
|
|
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Extern variables
|
|
*
|
|
*/
|
|
|
|
|
|
/**************************************************************************
|
|
*
|
|
* Function prototypes
|
|
*
|
|
*/
|
|
|
|
/* byte string operations */
|
|
|
|
#if defined(ANDROID)
|
|
/* bionic declares these as overloadable for _FORTIFY_SOURCE, which a plain re-declaration
|
|
here would clash with, so take them from the real header instead. */
|
|
#include <strings.h>
|
|
#elif !defined(PLATFORM_OSX)
|
|
extern void bcopy(const void *, void *, size_t);
|
|
extern int bcmp(const void *, const void *, size_t);
|
|
extern void bzero(void *, size_t);
|
|
#endif
|
|
|
|
/* Printf */
|
|
|
|
#ifdef PLATFORM_N64
|
|
extern int sprintf(char *s, const char *fmt, ...);
|
|
#endif
|
|
extern void osSyncPrintf(const char *fmt, ...);
|
|
|
|
|
|
#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
|
|
|
|
#ifdef _LANGUAGE_C_PLUS_PLUS
|
|
}
|
|
#endif
|
|
|
|
#endif /* !_OS_LIBC_H_ */
|