Page MenuHome

Blender 2.8 branch not building in MSVC since commit #a48186c
AbandonedPublic

Authored by Jean-François Michaud (jfmichaud31) on May 9 2018, 9:07 AM.

Details

Summary

Since commit #a48186c compilation on MSVC fails with errors in writeframeserver.c file because the 2 macros FD_ZERO and FD_SET use the macro FAR which expand to far and then should be nothing. But because this file include DNA_scene_types.h , and that in commit #a48186c the line #include "DNA_view3d_types.h" is added to this file, the following is at the same time included:

/* This is needed to not let VC choke on near and far... old
 * proprietary MS extensions... */
#ifdef WIN32
#undef near
#undef far
#define near clipsta
#define far clipend
#endif

This results in FAR being expanded to clipend and it's not a valid keyword.

Diff Detail

Repository
rB Blender