Revision: 55205
http://brlcad.svn.sourceforge.net/brlcad/?rev=55205&view=rev
Author: r_weiss
Date: 2013-04-22 16:18:19 +0000 (Mon, 22 Apr 2013)
Log Message:
-----------
For "libregex", added comment on ordering of headers to define type "off_t" for
Windows.
Modified Paths:
--------------
brlcad/trunk/src/other/libregex/regex.h
Modified: brlcad/trunk/src/other/libregex/regex.h
===================================================================
--- brlcad/trunk/src/other/libregex/regex.h 2013-04-22 16:06:24 UTC (rev
55204)
+++ brlcad/trunk/src/other/libregex/regex.h 2013-04-22 16:18:19 UTC (rev
55205)
@@ -61,6 +61,13 @@
# endif
#endif
+/* On Windows 64bit, "off_t" is defined as a "long"
+ * within "sys/types.h" which breaks "libregex". To
+ * resolve this, we must define "off_t" before we
+ * include "sys/types.h". Defining "off_t" as
+ * "ssize_t" works for both Windows 32bit and 64bit.
+ */
+
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits