From 3636ee6097dee4380bd29510fe6d68bc966f7079 Mon Sep 17 00:00:00 2001 From: xavi92 Date: Mon, 12 Aug 2024 23:56:21 +0000 Subject: [PATCH] portability: Move sources to their own directories More portability functions shall be defined by future commits. Since it is preferred to keep each function on its own source file, it is also desirable to keep them on their own directories, based on the system they were written for. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9536 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 13a58045307b4e6fbe00925ee1b5aec2316d285a Former-commit-id: c18046b698e099e2c67c1825955a92531209b14d --- src/libs/portability/CMakeLists.txt | 6 ++++-- src/libs/portability/{posix.cpp => posix/rmdir_r.cpp} | 0 src/libs/portability/{win32.cpp => win32/rmdir_r.cpp} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename src/libs/portability/{posix.cpp => posix/rmdir_r.cpp} (100%) rename src/libs/portability/{win32.cpp => win32/rmdir_r.cpp} (100%) diff --git a/src/libs/portability/CMakeLists.txt b/src/libs/portability/CMakeLists.txt index d077aae6..3756152c 100644 --- a/src/libs/portability/CMakeLists.txt +++ b/src/libs/portability/CMakeLists.txt @@ -13,9 +13,11 @@ ENDIF(COMMAND CMAKE_POLICY) IF(WIN32) # DLL export stuff under Windows (to avoid .def file) ADD_DEFINITIONS(-DPORTABILITY_DLL) - set(PORTABILITY_SOURCES ${PORTABILITY_SOURCES} win32.cpp) + set(PORTABILITY_SOURCES ${PORTABILITY_SOURCES} + win32/rmdir_r.cpp) ELSEIF(UNIX) - set(PORTABILITY_SOURCES ${PORTABILITY_SOURCES} posix.cpp) + set(PORTABILITY_SOURCES ${PORTABILITY_SOURCES} + posix/rmdir_r.cpp) ENDIF(WIN32) # Note: Headers needed for having them available in IDEs. diff --git a/src/libs/portability/posix.cpp b/src/libs/portability/posix/rmdir_r.cpp similarity index 100% rename from src/libs/portability/posix.cpp rename to src/libs/portability/posix/rmdir_r.cpp diff --git a/src/libs/portability/win32.cpp b/src/libs/portability/win32/rmdir_r.cpp similarity index 100% rename from src/libs/portability/win32.cpp rename to src/libs/portability/win32/rmdir_r.cpp