FXAtomatic.cpp Windows build question

"Wuping Xin" <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <emccdd63e8-fe3d-452c-b6d9-a1e4fbc52a09@wx-np8968>
Hello Dear FOX users:

I am trying to build version 1.7.78 (the latest snapshot),  Windows 
platform, using Visual Studio 2019.

Problem:
I got the following errors, complaining _InterlockedXXXX identifier not 
found,  something like:  error C3861: '_InterlockedAdd64': identifier 
not found
I did some search inside Fox-Toolkit mailing list, and there seems to 
have some history posts discussing this but not helpful for me.
Solution (?):
After looking into winnt.h,  I changed all of the references to 
_InterlockedXXXXXX inside FXAtomatic.cpp, removing the prefixed 
underscore _.
For example,  change __InterlockedAdd64 to InterlockedAdd64
Then the build becomes successful, for both Win32 and x64 build.
I am sharing this experience, just in case it might be useful for 
others.   Or,  someone can advise if there is a better (or more correct) 
fix,  please let me know.

Thank you.
Wuping

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.