Bug 573341 - Wrong AVMPLUS_ALIGN16 declaration on mingw r=dvander
authorJacek Caban <jacek@codeweavers.com>
Sun, 27 Jun 2010 01:28:10 +0200
changeset 48598 4de031f4788f851c9ac8e51162dfbf9687b011b2
parent 48597 6bba024e5fc8a3b1d1ce9720f58819f450203647
child 48599 80382d88b92c05e71a65f2bb662614ea702cad8d
push idunknown
push userunknown
push dateunknown
reviewersdvander
bugs573341
milestone2.0b2pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 573341 - Wrong AVMPLUS_ALIGN16 declaration on mingw r=dvander
js/src/nanojit/Assembler.h
--- a/js/src/nanojit/Assembler.h
+++ b/js/src/nanojit/Assembler.h
@@ -169,17 +169,17 @@ namespace nanojit
 
     inline uint32_t AR::stackSlotsNeeded() const
     {
         // NB: _highWaterMark is an index, not a count
         return _highWaterMark+1;
     }
 
     #ifndef AVMPLUS_ALIGN16
-        #ifdef AVMPLUS_WIN32
+        #ifdef _MSC_VER
             #define AVMPLUS_ALIGN16(type) __declspec(align(16)) type
         #else
             #define AVMPLUS_ALIGN16(type) type __attribute__ ((aligned (16)))
         #endif
     #endif
 
     // error codes
     enum AssmError