Showing with 23 additions and 9 deletions.
  1. +1 −1 fuse/peripherals/disk/beta.c
  2. +3 −3 fuse/peripherals/disk/disk.c
  3. +2 −2 fuse/peripherals/if1.c
  4. +10 −0 fuse/ui/widget/filesel.c
  5. +2 −0 fuse/ui/widget/widget.c
  6. +3 −1 fuse/utils.c
  7. +1 −1 libspectrum/libspectrum.c
  8. +1 −1 libspectrum/rzx.c
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
#if defined(HAVE_STRINGS_H) && !defined(__CELLOS_LV2__)
#include <strings.h> /* Needed for strncasecmp() on QNX6 */
#endif /* #ifdef HAVE_STRINGS_H */
#include <limits.h>
@@ -1839,14 +1839,14 @@ disk_open2( disk_t *d, const char *filename, int preindex )
libspectrum_id_t type;
int error;

#ifdef GEKKO /* Wii doesn't have access() */
#if defined(GEKKO) || defined(__CELLOS_LV2__) /* Wii/PS3 doesn't have access() */
d->wrprot = 0;
#else /* #ifdef GEKKO */
#else /* #if !defined(GEKKO) && !defined(__CELLOS_LV2__) */
if( access( filename, W_OK ) == -1 ) /* file read only */
d->wrprot = 1;
else
d->wrprot = 0;
#endif /* #ifdef GEKKO */
#endif /* #if !defined(GEKKO) && !defined(__CELLOS_LV2__) */

if( utils_read_file( filename, &buffer.file ) )
return d->status = DISK_OPEN;
@@ -1256,8 +1256,8 @@ if1_mdr_write( int which, const char *filename )
void
if1_plug( const char *filename, int what )
{
#ifdef WIN32
ui_error( UI_ERROR_ERROR, "Not yet implemented on Win32" );
#if defined(WIN32) || defined(__CELLOS_LV2__)
ui_error( UI_ERROR_ERROR, "Not yet implemented on this platform." );
return;
#else
int fd = -1;
@@ -214,6 +214,16 @@ static int widget_add_filename( int *allocated, int *number,
return 0;
}

#ifndef NAME_MAX
#define NAME_MAX 4096
#endif

#ifdef __CELLOS_LV2__
#ifndef S_ISDIR
#define S_ISDIR(x) (x & 0040000)
#endif
#endif

#if defined AMIGA || defined __MORPHOS__
char *
amiga_asl( char *title, BOOL is_saving ) {
@@ -28,7 +28,9 @@
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#if !defined(__CELLOS_LV2__)
#include <signal.h>
#endif
#include <stdio.h>
#include <string.h>
#include <limits.h>
@@ -30,9 +30,11 @@
#include <libgen.h>
#endif /* #ifdef HAVE_LIBGEN_H */
#include <string.h>
#ifndef __CELLOS_LV2__
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <ui/ui.h>
#include <unistd.h>

#include <libspectrum.h>

@@ -27,7 +27,7 @@

#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
#if defined(HAVE_STRINGS_H) && !defined(__CELLOS_LV2__)
#include <strings.h> /* Needed for strcasecmp() on QNX6 */
#endif /* #ifdef HAVE_STRINGS_H */

@@ -28,7 +28,7 @@
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
#if defined(HAVE_STRINGS_H) && !defined(__CELLOS_LV2__)
#include <strings.h> /* Needed for strcasecmp() on QNX6 */
#endif /* #ifdef HAVE_STRINGS_H */