Skip to content

Commit

Permalink
Removed obsolete Android-specific parts
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 10, 2023
1 parent d0fd7fd commit c02d2ce
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 446 deletions.
286 changes: 0 additions & 286 deletions Android.mk

This file was deleted.

25 changes: 0 additions & 25 deletions external/libguisan/Android.mk

This file was deleted.

8 changes: 1 addition & 7 deletions src/fsusage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "sysconfig.h"
#include "sysdeps.h"

#include <stdlib.h>
#include <cstdlib>
#include <sys/types.h>

#ifdef HAVE_SYS_STAT_H
Expand Down Expand Up @@ -294,15 +294,9 @@ int get_fs_usage (const TCHAR *path, const TCHAR *disk, struct fs_usage *fsp)
#ifdef STAT_STATVFS /* SVR4 */
# define CONVERT_BLOCKS(B) \
adjust_blocks ((B), fsd.f_frsize ? fsd.f_frsize : fsd.f_bsize, 512)
#ifdef ANDROID
struct statfs fsd;

if (statfs (path, &fsd) < 0)
#else
struct statvfs fsd{};

if (statvfs (path, &fsd) < 0)
#endif
return -1;
/* f_frsize isn't guaranteed to be supported. */

Expand Down
5 changes: 1 addition & 4 deletions src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
#include <csignal>

#include <algorithm>
#ifndef ANDROID
#include <execinfo.h>
#endif

#include "sysdeps.h"
#include "options.h"
#include "audio.h"
Expand Down Expand Up @@ -4031,7 +4028,7 @@ int main(int argc, char* argv[])
ClearAvailableROMList();
romlist_clear();
free_keyring();
//free_AmigaMem();

lstMRUDiskList.clear();
lstMRUCDList.clear();
lstMRUWhdloadList.clear();
Expand Down
4 changes: 0 additions & 4 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ SDL_Rect renderQuad;
static int dx = 0, dy = 0;
const char* sdl_video_driver;

#ifdef ANDROID
#include <android/log.h>
#endif

static int display_width;
static int display_height;
static int display_depth;
Expand Down
4 changes: 0 additions & 4 deletions src/osdep/amiberry_mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
#include "sys/sysinfo.h"
#endif

#ifdef ANDROID
#define valloc(x) memalign(getpagesize(), x)
#endif

#ifdef __APPLE__
#include <sys/sysctl.h>
#endif
Expand Down
Loading

0 comments on commit c02d2ce

Please sign in to comment.