Skip to content

Commit

Permalink
cleanup macros and fix linux macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientjpeg committed Feb 1, 2025
1 parent 03a6ad2 commit a0e2aec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dev/functional/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

#if defined(_WIN32)
#define SQLITE_ORM_WIN
#elif defined(__APPLE__)
#elif defined(__APPLE__) && defined(__MACH__)
#define SQLITE_ORM_MAC
#define SQLITE_ORM_UNIX
#elif defined(__unix__) || defined(__unix) || defined(__linux__) || defined (__FreeBSD__)
Expand Down
11 changes: 2 additions & 9 deletions dev/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ namespace sqlite_orm {

enum class vfs_t {

#if defined(SQLITE_ORM_MAC) || defined(SQLITE_ORM_LINUX)

#ifdef SQLITE_ORM_UNIX
unix = 0,
unix_posix = 0,
unix_dotfile = 1

unix_dotfile = 1,
#ifdef SQLITE_ORM_MAC
,
unix_afp = 2,

#elif defined(SQLITE_ORM_LINUX)

#endif

#endif

#ifdef SQLITE_ORM_WIN
Expand Down
13 changes: 3 additions & 10 deletions include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ using std::nullptr_t;

#if defined(_WIN32)
#define SQLITE_ORM_WIN
#elif defined(__APPLE__)
#elif defined(__APPLE__) && defined(__MACH__)
#define SQLITE_ORM_MAC
#define SQLITE_ORM_UNIX
#elif defined(__unix__) || defined(__unix) || defined(__linux__) || defined(__FreeBSD__)
Expand Down Expand Up @@ -12212,20 +12212,13 @@ namespace sqlite_orm {

enum class vfs_t {

#if defined(SQLITE_ORM_MAC) || defined(SQLITE_ORM_LINUX)

#ifdef SQLITE_ORM_UNIX
unix = 0,
unix_posix = 0,
unix_dotfile = 1

unix_dotfile = 1,
#ifdef SQLITE_ORM_MAC
,
unix_afp = 2,

#elif defined(SQLITE_ORM_LINUX)

#endif

#endif

#ifdef SQLITE_ORM_WIN
Expand Down

0 comments on commit a0e2aec

Please sign in to comment.