Skip to content

Commit

Permalink
Compatibility with GCC10+ (SDL1)
Browse files Browse the repository at this point in the history
  • Loading branch information
twojstaryzdomu committed Dec 28, 2024
2 parents 1d78190 + 1855c8e commit f56f182
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions message.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#define MESSAGE_TIMELIMIT 1000
#define MAX_MESSAGES 5

char *_queue[MAX_MESSAGES];
char _buf[MESSAGE_MAX];
char __attribute__((__common__)) *_queue[MAX_MESSAGES];
char __attribute__((__common__)) _buf[MESSAGE_MAX];

struct message_t {
void (*add)(const char *format, ...);
Expand Down
6 changes: 3 additions & 3 deletions sys_sine.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <stdint.h>
#include "sys.h"

const uint8_t sine_tbl[ORIG_W];
const uint8_t cos_tbl_sys[256];
const uint8_t sin_tbl_sys[256];
const __attribute__((__common__)) uint8_t sine_tbl[ORIG_W];
const __attribute__((__common__)) uint8_t cos_tbl_sys[256];
const __attribute__((__common__)) uint8_t sin_tbl_sys[256];

#endif

0 comments on commit f56f182

Please sign in to comment.