It shouldn't be necessary to comment out anything in stdio.h.  You can
pass the following arguments to cl to turn off the secure deprecation
warnings:

-wd4996 -D_CRT_SECURE_NO_DEPRECATE

Other than that, I would change

#define IDC_STATIC -1

to

#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif

but everything else looks fine to me.

DRC

Antoine Martin wrote:
> Hi,
> 
> I eventually managed to build TigerVNC with VC++ 9
> Attached are the trivial changes that I had to make.
> Can anyone suggest a better way of fixing those compilation errors?
> What sort of a patch would be acceptable for merging?
> 
> Mostly, just:
> * casts
> * afxres.h -> windows.h (and add #define IDC_STATIC -1)
> 
> FYI: I also had to comment out this line in VC's stdio.h:
> _Check_return_opt_ _CRT_INSECURE_DEPRECATE(vsnprintf_s) _CRTIMP int
> __cdecl vsnprintf(_Out_cap_(_MaxCount) char * _DstBuf, _In_ size_t
> _MaxCount, _In_z_ _Printf_format_string_ const char * _Format, va_list
> _ArgList);
> Which gives me lots of warnings, but at least it builds...
> 
> Now at least I can try to solve my real problems (PasswordFile, etc..)
> 
> Cheers
> Antoine
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tigervnc-devel mailing list
> Tigervnc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to