Author Topic: #define _AMD64_  (Read 8937 times)

Rich Hornay

  • Newbie
  • *
  • Posts: 4
    • View Profile
#define _AMD64_
« on: October 10, 2011, 12:24:28 PM »
I am getting the following (VS2010, v90 toolset):

1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): error C2220: warning treated as error - no 'object' file generated
1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): warning C4005: '_AMD64_' : macro redefinition
1>          command-line arguments :  see previous definition of '_AMD64_'

I get around it via #undef _AMD64_ before including <atomic>, but I would prefer not to do that.  Maybe you should consider #ifndef _AMD64_ before defining it?  The value is somewhat erratic.  I have found it defined empty and 1.

Anthony Williams

  • Administrator
  • Full Member
  • *****
  • Posts: 103
    • View Profile
    • just::thread C++ Thread Library
Re: #define _AMD64_
« Reply #1 on: October 10, 2011, 12:30:59 PM »
Thanks for the report; this fix will be in the next release.