Skip to content

Instantly share code, notes, and snippets.

@genuinelucifer
Created May 19, 2015 06:47
Show Gist options
  • Save genuinelucifer/39a66b7883de884a37bb to your computer and use it in GitHub Desktop.
Save genuinelucifer/39a66b7883de884a37bb to your computer and use it in GitHub Desktop.
CS_VALUE_TYPE struct incompilable even with one array...
diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h
index 488dd2c..62ec2a8 100644
--- a/tests/Basic/Basic.h
+++ b/tests/Basic/Basic.h
@@ -710,3 +710,17 @@ public:
bool operator ==(const DifferentConstOverloads& other);
bool operator ==(int number) const;
};
+
+#define SCE_NP_ONLINEID_MAX_LENGTH 5
+#define kPacketPayloadSize 5
+#define uint8_t char
+#define CS_VALUE_TYPE
+struct CS_VALUE_TYPE UnpackedPacket
+{
+ char fromOnlineId[SCE_NP_ONLINEID_MAX_LENGTH];
+ /*
+ char toOnlineId[SCE_NP_ONLINEID_MAX_LENGTH];
+ uint8_t buffer[kPacketPayloadSize];
+ */
+ size_t size;
+};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment