Paul Martz wrote:
> Hi Chris -- This change has a compile error on OS X:
> /Users/pmartz/Projects/OSG/trunkexp/trunk/src/osgDB/FileUtils.cpp: In
> function ‘std::string osgDB::getCurrentWorkingDirectory()’:
> /Users/pmartz/Projects/OSG/trunkexp/trunk/src/osgDB/FileUtils.cpp:204:
> error: ‘TCHAR’ was not declared in this scope
> /Users/pmartz/Projects/OSG/trunkexp/trunk/src/osgDB/FileUtils.cpp:204:
> error: expected `;' before ‘rootdir’
> /Users/pmartz/Projects/OSG/trunkexp/trunk/src/osgDB/FileUtils.cpp:205:
> error: ‘rootdir’ was not declared in this scope
> I don't see TCHAR defined anywhere, but it seems OK on Windows, so I
> assume this is some kind of weird Windows char data type?

  Yeah, it's a Windows Unicode macro. I don't compile with Unicode. I was 
trying to
preserve Windows/Unicode/platform happiness by copying the style of the 
current-directory
code at unzip.cpp line 3916 and 3931. Is there an alternate unzip.cpp code-path 
that
compiles on OSX? Or can you tell how that code is able to compile on OSX and 
maybe what
include or define we need to mimic to get the same behaviour?

>    -Paul

-- 
Chris 'Xenon' Hanson, omo sanza lettere                  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to