Skip to content

Commit

Permalink
build: fix __attribute__((aligned(x))) on gcc/clang
Browse files Browse the repository at this point in the history
This is a followup on 81d5a24 (build: fix building with MSVC,
2024-03-07).

Fix the missing trailing _ in __attribute__ for
__attribute((aligned(x))).

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
  • Loading branch information
rkitover authored and flibitijibibo committed Mar 9, 2024
1 parent 81d5a24 commit 68a555e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FAudio_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ extern void FAudio_Log(char const *msg);
#endif

/* Alignment macro for gcc/clang/msvc */
#if defined(__GNUC__) || defined(__clang__)
#define ALIGN(type, boundary) type __attribute_((aligned(boundary)))
#if defined(__clang__) || defined(__GNUC__)
#define ALIGN(type, boundary) type __attribute__((aligned(boundary)))
#elif defined(_MSC_VER)
#define ALIGN(type, boundary) __declspec(align(boundary)) type
#else
Expand Down

0 comments on commit 68a555e

Please sign in to comment.