Revision: 40513
http://brlcad.svn.sourceforge.net/brlcad/?rev=40513&view=rev
Author: bob1961
Date: 2010-09-09 14:44:41 +0000 (Thu, 09 Sep 2010)
Log Message:
-----------
Accomodation for windows.
Modified Paths:
--------------
brlcad/trunk/src/librt/db_open.c
Modified: brlcad/trunk/src/librt/db_open.c
===================================================================
--- brlcad/trunk/src/librt/db_open.c 2010-09-09 14:41:12 UTC (rev 40512)
+++ brlcad/trunk/src/librt/db_open.c 2010-09-09 14:44:41 UTC (rev 40513)
@@ -162,6 +162,7 @@
argv[2] = NULL;
dbip->dbi_filepath = argv;
+#if !defined(_WIN32) || defined(__CYGWIN__)
/* If not a full path */
if (argv[1][0] != '/') {
struct bu_vls fullpath;
@@ -197,6 +198,10 @@
/* Record the filename and file path */
dbip->dbi_filename = bu_strdup(name);
}
+#else
+ /* Record the filename and file path */
+ dbip->dbi_filename = bu_strdup(name);
+#endif
bu_ptbl_init(&dbip->dbi_clients, 128, "dbi_clients[]");
dbip->dbi_magic = DBI_MAGIC; /* Now it's valid */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits