Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64
Browse files Browse the repository at this point in the history
Thanks to Marek Pokorny for tracking this down and providing a fix.
  • Loading branch information
slouken committed Jul 11, 2012
1 parent fe844af commit 7f70994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib/SDL_stdlib.c
Expand Up @@ -34,8 +34,8 @@
__declspec(selectany) int _fltused = 1;
#endif

/* The optimizer on Visual Studio 2010 generates memcpy() calls */
#if _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG)
/* The optimizer on Visual Studio 2010/2012 generates memcpy() calls */
#if _MSC_VER >= 1600 && defined(_WIN64) && !defined(_DEBUG)
#include <intrin.h>

#pragma function(memcpy)
Expand Down

0 comments on commit 7f70994

Please sign in to comment.