SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Sub/Naval + Other Games > Indie Subsims
Forget password? Reset here

View Poll Results: Would you play OpenSSN on Windows?
Yes, please make OpenSSN available on Windows 14 93.33%
No, I already have subsims I like on Windows 1 6.67%
I don't use Windows 0 0%
Voters: 15. You may not vote on this poll

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-04-11, 12:17 PM   #16
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

You can just redefine them with a precompiler statement.

#if _MSC_VER
#define snprintf _snprintf
#define strncmp _strnicmp
#endif

Etc... This will be ignored by the linux compilers and will properly replace the functions under MSVC
magicstix is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.