summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2013-08-21 00:56:19 +1200
committerScott Mansell <phiren@gmail.com>2013-08-21 00:56:19 +1200
commit71cc490969268aeba10bad0e012007cd6ac27d35 (patch)
treebe917bb04db5f8678723fb69f58e0febf6596f69 /Source/Plugins/Plugin_VideoSoftware
parentd52e241cdf331761aa26d965b223b837a8bd6a8e (diff)
Appease the all powerful buildbot.
Visual Studio's struct alignment #pragma is ugly.
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.h b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.h
index dcd5752267..0df8082e59 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.h
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.h
@@ -15,13 +15,15 @@ namespace EfbInterface
enum { ALP_C, BLU_C, GRN_C, RED_C };
// packed so the compiler doesn't mess with alignment
- typedef struct __attribute__ ((packed)) {
+#pragma pack(push,1)
+ typedef struct {
u8 Y;
u8 UV;
} yuv422_packed;
+#pragma pack(pop)
- // But this one is only used internally, so we can let the compiler pack it however it likes.
- typedef struct __attribute__ ((aligned (4))){
+ // But this struct is only used internally, so we could optimise alignment
+ typedef struct {
u8 Y;
s8 U;
s8 V;