Use only needed functions from osdlib

This commit is contained in:
CharlesThobe 2022-01-04 04:48:24 +02:00
parent 26369efdca
commit 568395d8c0
2 changed files with 26 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ${CMAKE_SOURCE_DIR}/src/emu
${CMAKE_SOURCE_DIR}/src/osd
${CMAKE_SOURCE_DIR}/src/lib
${CMAKE_SOURCE_DIR}/src/lib/util
${CMAKE_SOURCE_DIR}/src/osd/sdl
#${CMAKE_SOURCE_DIR}/src/osd/sdl
)
add_library(ocore_sdl STATIC
@ -18,7 +18,8 @@ ${CMAKE_SOURCE_DIR}/src/osd/osdsync.cpp
${CMAKE_SOURCE_DIR}/src/osd/osdsync.h
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.cpp
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.h
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib_unix_mod.cpp
#${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib_unix.cpp
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osd_getenv.cpp
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib.h
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixdir.cpp
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.cpp

View File

@ -0,0 +1,23 @@
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert, R. Belmont
//============================================================
//
// sdlos_*.c - OS specific low level code
//
// SDLMAME by Olivier Galibert and R. Belmont
//
//============================================================
// MAME headers
#include "osdcore.h"
#include "osdlib.h"
//============================================================
// osd_getenv
//============================================================
const char *osd_getenv(const char *name)
{
return getenv(name);
}