Skip to content

Commit 540afcf

Browse files
committed
Sigh
1 parent e268935 commit 540afcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Engine/Surface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Surface::Surface(int width, int height, int x, int y, int bpp) : _x(x), _y(y), _
4545
//_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 8, 0, 0, 0, 0);
4646
int pitch = (bpp/8) * ((width+15)& ~0xF);
4747

48-
#ifndef _WIN32
48+
#ifndef _MSC_VER
4949
int rc;
5050
if ((rc = posix_memalign(&_alignedBuffer, 16, pitch * height * (bpp/8))))
5151
{
@@ -104,7 +104,7 @@ Surface::Surface(const Surface& other)
104104
Surface::~Surface()
105105
{
106106
//if (_misalignedPixelBuffer) _surface->pixels = _misalignedPixelBuffer;
107-
#ifdef _WIN32
107+
#ifdef _MSC_VER
108108
if (_alignedBuffer) _aligned_free(_alignedBuffer);
109109
#else
110110
if (_alignedBuffer) free(_alignedBuffer);

0 commit comments

Comments
 (0)