Skip to content

Commit de7cee0

Browse files
committed
Corrected a pre-processor condition
1 parent 14a2aa0 commit de7cee0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/connection_holder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ namespace sqlite_orm {
186186
}
187187

188188
protected:
189-
#if SQLITE_ORM_ALIGNED_NEW_SUPPORTED
189+
#ifdef SQLITE_ORM_ALIGNED_NEW_SUPPORTED
190190
alignas(polyfill::hardware_destructive_interference_size)
191191
#endif
192192
sqlite3* db = nullptr;
@@ -195,7 +195,7 @@ namespace sqlite_orm {
195195
std::atomic_int _retainCount{};
196196

197197
private:
198-
#if SQLITE_ORM_ALIGNED_NEW_SUPPORTED
198+
#ifdef SQLITE_ORM_ALIGNED_NEW_SUPPORTED
199199
alignas(polyfill::hardware_destructive_interference_size)
200200
#endif
201201
const std::function<void(sqlite3* db)> _onAfterOpen;

include/sqlite_orm/sqlite_orm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14123,7 +14123,7 @@ namespace sqlite_orm {
1412314123
}
1412414124

1412514125
protected:
14126-
#if SQLITE_ORM_ALIGNED_NEW_SUPPORTED
14126+
#ifdef SQLITE_ORM_ALIGNED_NEW_SUPPORTED
1412714127
alignas(polyfill::hardware_destructive_interference_size)
1412814128
#endif
1412914129
sqlite3* db = nullptr;
@@ -14132,7 +14132,7 @@ namespace sqlite_orm {
1413214132
std::atomic_int _retainCount{};
1413314133

1413414134
private:
14135-
#if SQLITE_ORM_ALIGNED_NEW_SUPPORTED
14135+
#ifdef SQLITE_ORM_ALIGNED_NEW_SUPPORTED
1413614136
alignas(polyfill::hardware_destructive_interference_size)
1413714137
#endif
1413814138
const std::function<void(sqlite3* db)> _onAfterOpen;

0 commit comments

Comments
 (0)