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
8 changes: 8 additions & 0 deletions SimpleBaseLib/src/Include/SimpleBaseLib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
{$STRINGCHECKS OFF}
{$WARN DUPLICATE_CTOR_DTOR OFF}

{============================== CPU Architecture ==============================}

{$DEFINE SIMPLEBASELIB_LITTLE_ENDIAN}

{$IFDEF CPUARM}
{$DEFINE SIMPLEBASELIB_REQUIRES_PROPER_ALIGNMENT}
{$ENDIF}

{$ENDIF}

{========================== Common Compiler Settings ==========================}
Expand Down
10 changes: 10 additions & 0 deletions SimpleBaseLib/src/Include/SimpleBaseLibFPC.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
{$MESSAGE ERROR 'This Library requires FreePascal 3.2.2 or higher.'}
{$IFEND}

{============================== CPU Architecture ==============================}

{$IFDEF FPC_LITTLE_ENDIAN}
{$DEFINE SIMPLEBASELIB_LITTLE_ENDIAN}
{$ENDIF}

{$IFDEF FPC_REQUIRES_PROPER_ALIGNMENT}
{$DEFINE SIMPLEBASELIB_REQUIRES_PROPER_ALIGNMENT}
{$ENDIF}

{========================= Compiler Mode & Optimizations ======================}

{$MODE DELPHI}
Expand Down
Loading