Skip to content

Commit

Permalink
Syscode constants are now defines.
Browse files Browse the repository at this point in the history
They shall not be compiled as constants into the library. This prevents duplicate defintions.
  • Loading branch information
BenediktMagnus committed Jan 8, 2024
1 parent 66b627d commit 3b34a4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platforms/amd64/linux/syscodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#include "../../common/types.h"

const UInt8 SYSCODE_READ = 0x00;
const UInt8 SYSCODE_WRITE = 0x01;
#define SYSCODE_READ 0x00
#define SYSCODE_WRITE 0x01

const UInt8 SYSCODE_MEMORY_MAP = 0x09;
#define SYSCODE_MEMORY_MAP 0x09

const UInt8 SYSCODE_MEMORY_UNMAP = 0x0b;
#define SYSCODE_MEMORY_UNMAP 0x0b

const UInt8 SYSCODE_NANO_SLEEP = 0x23;
#define SYSCODE_NANO_SLEEP 0x23

const UInt16 SYSCODE_GET_RANDOM = 0x013e;
#define SYSCODE_GET_RANDOM 0x013e

0 comments on commit 3b34a4e

Please sign in to comment.