Skip to content

Commit

Permalink
Merge pull request #45 from BillyONeal/fix-macos-15-xcode-16
Browse files Browse the repository at this point in the history
Fix build on macOS 15 / XCode Command Line Tools 16.
  • Loading branch information
Hedede authored Oct 10, 2024
2 parents e2733c2 + 34a6490 commit 19f6958
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions io/include/aw/io/mmap_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ using win32::file_mapping;
inline file_mode get_file_mode(map_perms perms)
{
using mp = map_perms;
switch (perms) {
case mp::none:
case mp::none|mp::exec:
switch (static_cast<unsigned>(perms)) {
case static_cast<unsigned>(mp::none):
case static_cast<unsigned>(mp::none|mp::exec):
return file_mode::none;
case mp::read:
case mp::read|mp::exec:
case static_cast<unsigned>(mp::read):
case static_cast<unsigned>(mp::read|mp::exec):
return file_mode::read;
case mp::write:
case static_cast<unsigned>(mp::write):
return file_mode::write;
case mp::write|mp::exec:
case mp::rdwr:
case mp::rdwr|mp::exec:
case static_cast<unsigned>(mp::write|mp::exec):
case static_cast<unsigned>(mp::rdwr):
case static_cast<unsigned>(mp::rdwr|mp::exec):
return file_mode::read|file_mode::write;
}

Expand Down
1 change: 1 addition & 0 deletions types/include/aw/types/byte_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/
#ifndef aw_types_byte_buffer_h
#define aw_types_byte_buffer_h
#include <cstdlib>
#include <memory>
namespace aw {
/**
Expand Down

0 comments on commit 19f6958

Please sign in to comment.