Allow compilation of testpaint on non-x86 targets (#7989)

This will enable compilation of testpaint on targets different than x86.
It won't function the way it does on x86, but it should provide a way of
tackling various compilation errors that can only be seen in the very
specific environment required by testpaint proper.
This commit is contained in:
Michał Janiszewski authored and GitHub committed 2018-09-15 23:37:45 +02:00
1 parent 47eea292b5
commit 92b556352b
3 files changed
+14 -4

No files matched your search

+5
View File
@@ -451,6 +451,10 @@ static void TestGeneralSupportHeightCall()
int main(int argc, char* argv[])
{
#if !defined(__i386__)
fprintf(stderr, "Testpaint can only be properly executed on x86\n");
return 1;
#else
TestGeneralSupportHeightCall();
std::vector<TestCase> testCases;
@@ -636,4 +640,5 @@ int main(int argc, char* argv[])
}
return 0;
#endif
}