Disable test code from nvdecompress. Update vc12 projects and fix vc12 build. Fixes bug #232.
This commit is contained in:
parent
7596650a2d
commit
9b79638f79
@ -157,6 +157,7 @@
|
||||
<ClInclude Include="..\..\..\src\nvcore\Debug.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\DefsVcWin32.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\FileSystem.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\ForEach.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\Memory.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\nvcore.h" />
|
||||
<ClInclude Include="..\..\..\src\nvcore\Ptr.h" />
|
||||
|
@ -10,20 +10,26 @@ These foreach macros are very non-standard and somewhat confusing, but I like th
|
||||
|
||||
#include "nvcore.h"
|
||||
|
||||
#if NV_CC_GNUC || NV_CC_CPP11 // If typeof or decltype is available:
|
||||
#if NV_CC_GNUC // If typeof or decltype is available:
|
||||
#if !NV_CC_CPP11
|
||||
# define NV_DECLTYPE typeof // Using a non-standard extension over typeof that behaves as C++11 decltype
|
||||
#else
|
||||
# define NV_DECLTYPE decltype
|
||||
#endif
|
||||
|
||||
/*
|
||||
Ideally we would like to write this:
|
||||
|
||||
#define NV_FOREACH(i, container) \
|
||||
for(NV_DECLTYPE(container)::PseudoIndex i((container).start()); !(container).isDone(i); (container).advance(i))
|
||||
|
||||
But gcc versions prior to 4.7 required an intermediate type. See:
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
|
||||
*/
|
||||
|
||||
#define NV_FOREACH(i, container) \
|
||||
typedef NV_DECLTYPE(container) NV_STRING_JOIN2(cont,__LINE__); \
|
||||
for(NV_STRING_JOIN2(cont,__LINE__)::PseudoIndex i((container).start()); !(container).isDone(i); (container).advance(i))
|
||||
/*
|
||||
#define NV_FOREACH(i, container) \
|
||||
for(typename typeof(container)::PseudoIndex i((container).start()); !(container).isDone(i); (container).advance(i))
|
||||
*/
|
||||
|
||||
#else // If typeof not available:
|
||||
|
||||
|
@ -45,7 +45,7 @@ int main(int argc, char *argv[])
|
||||
bool faces = false;
|
||||
bool savePNG = false;
|
||||
bool rgbm = false;
|
||||
bool histogram = true;
|
||||
bool histogram = false;
|
||||
|
||||
nv::Path input;
|
||||
nv::Path output;
|
||||
|
Loading…
Reference in New Issue
Block a user