Small fix to prevent people to compile 64 bits blenders, without knowing

it might be harmful.

(It will print warning in console and exits Blender.)
This commit is contained in:
Ton Roosendaal
2007-01-18 20:57:08 +00:00
parent 719964ea8e
commit b8f47f9204

View File

@@ -229,6 +229,14 @@ int main(int argc, char **argv)
SYS_SystemHandle syshandle;
Scene *sce;
/* temporary: prevent people to make/use 64 bits versions without them knowing it might be
risky. I don't know for sure yet if we get problems, but I rather not get the burden of
having to fix all faulty saved 64 bits files (ton) */
if(sizeof(void *)==8) {
printf("64 bits compiles will give incorrectly saved .blend files. Do not use it. For testing purposes please remove this line from creator.c\n");
exit(0);
}
#if defined(WIN32) || defined (__linux__)
int audio = 1;
#else