Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lang/io/io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#if defined(__linux__)
#include <linux/fs.h> // RENAME_EXCHANGE
#include <sys/syscall.h> // SYS_renameat2, syscall
#elifdef __APPLE__
#elif defined(__APPLE__)
#include <sys/stdio.h> // renameatx_np, RENAME_SWAP
#endif
#endif
Expand Down Expand Up @@ -94,7 +94,7 @@ auto atomic_directory_swap(const std::filesystem::path &original,
}

// Atomic swap via renameatx_np with RENAME_SWAP
#elifdef __APPLE__
#elif defined(__APPLE__)
if (renameatx_np(AT_FDCWD, replacement.c_str(), AT_FDCWD, original.c_str(),
RENAME_SWAP) != 0) {
throw std::filesystem::filesystem_error{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#if defined(__GNUC__) || defined(__clang__)
#define SOURCEMETA_FORCEINLINE [[gnu::always_inline]]
#elifdef _MSC_VER
#elif defined(_MSC_VER)
#define SOURCEMETA_FORCEINLINE [[msvc::forceinline]]
#else
#define SOURCEMETA_FORCEINLINE
Expand Down
Loading