Skip to content

Commit

Permalink
Revert "Update VFS implementation to current libretro-common (#354)" (#…
Browse files Browse the repository at this point in the history
…356)

This reverts commit 89d2c90.
  • Loading branch information
LibretroAdmin authored Jun 29, 2024
1 parent 6c72b77 commit 5355eae
Show file tree
Hide file tree
Showing 61 changed files with 2,751 additions and 5,537 deletions.
6 changes: 6 additions & 0 deletions Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,12 @@ LIBRETRO_CFLAGS += $(BPP_DEFINES) \
-DHAVE_OPLL_CORE \
-DMAXROMSIZE=$(MAX_ROM_SIZE)

ifneq (,$(findstring msvc,$(platform)))
LIBRETRO_CFLAGS += -DINLINE="static _inline"
else
LIBRETRO_CFLAGS += -DINLINE="static inline"
endif

OBJOUT = -o
LINKOUT = -o

Expand Down
8 changes: 2 additions & 6 deletions core/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@
* If you define INLINE in makefile or osd.h, it will override this value.
* NOTE: not enabling inline functions will SEVERELY slow down emulation.
*/
#ifndef INLINE
#if defined(_MSC_VER)
#define INLINE static _inline
#else
#define INLINE static __inline__
#endif
#ifndef INLINE
#define INLINE static __inline__
#endif /* INLINE */

/* Alignment macros for cross compiler compatibility */
Expand Down
3 changes: 1 addition & 2 deletions libretro/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ endif
ifeq ($(HAVE_CDROM), 1)
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/cdrom/cdrom.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation_cdrom.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation_cdrom.c
endif
SOURCES_C += \
$(LIBRETRO_DEPS_DIR)/zlib-1.2.11/adler32.c \
Expand Down
8 changes: 0 additions & 8 deletions libretro/deps/libchdr/include/libchdr/cdrom.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
#include <stdint.h>
#include <libchdr/chdconfig.h>

#ifndef INLINE
#if defined(_MSC_VER)
#define INLINE static _inline
#else
#define INLINE static __inline__
#endif
#endif /* INLINE */

/***************************************************************************
CONSTANTS
***************************************************************************/
Expand Down
Loading

0 comments on commit 5355eae

Please sign in to comment.