We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eaa22b commit aec1819Copy full SHA for aec1819
packages/vtfparser/file-format-objects/header.hpp
@@ -5,6 +5,12 @@
5
#include <cstdint>
6
#include "enums.hpp"
7
8
+#ifdef _MSC_VER
9
+#define align(x) alignas(x)
10
+#else
11
+#define align(x) __attribute__((aligned(x)))
12
+#endif
13
+
14
namespace VtfParser {
15
#pragma pack(push, 1)
16
@@ -29,7 +35,7 @@ namespace VtfParser {
29
35
/**
30
36
* Aligned full header (only for alignment reasons, do not use outside of Header declaration).
31
37
*/
32
- struct __attribute__((aligned(16))) HeaderFullAligned : public HeaderBase {
38
+ struct align(16) HeaderFullAligned : public HeaderBase {
33
39
34
40
* Width of the largest mipmap in pixels. Must be a power of 2.
41
0 commit comments