Revision: 41684
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41684&view=rev
Author:   bob1961
Date:     2010-12-16 21:50:29 +0000 (Thu, 16 Dec 2010)

Log Message:
-----------
Added this bit of code from the previous version of tclPlatDecls.h to get 
things compiling on windows again.

Modified Paths:
--------------
    brlcad/trunk/src/other/tcl/generic/tclPlatDecls.h

Modified: brlcad/trunk/src/other/tcl/generic/tclPlatDecls.h
===================================================================
--- brlcad/trunk/src/other/tcl/generic/tclPlatDecls.h   2010-12-16 21:00:28 UTC 
(rev 41683)
+++ brlcad/trunk/src/other/tcl/generic/tclPlatDecls.h   2010-12-16 21:50:29 UTC 
(rev 41684)
@@ -26,13 +26,19 @@
 /*
  *  Pull in the typedef of TCHAR for windows.
  */
-#if defined(__WIN32__) && !defined(_TCHAR_DEFINED)
+#if defined(__CYGWIN__)
+    typedef char TCHAR;
+#elif defined(__WIN32__) && !defined(_TCHAR_DEFINED)
 #   include <tchar.h>
 #   ifndef _TCHAR_DEFINED
        /* Borland seems to forget to set this. */
-       typedef _TCHAR TCHAR;
+        typedef _TCHAR TCHAR;
 #      define _TCHAR_DEFINED
 #   endif
+#   if defined(_MSC_VER) && defined(__STDC__)
+       /* MSVC++ misses this. */
+       typedef _TCHAR TCHAR;
+#   endif
 #endif
 
 /* !BEGIN!: Do not edit below this line. */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to