Author: astitcher
Date: Tue Apr 30 20:53:58 2013
New Revision: 1477822
URL: http://svn.apache.org/r1477822
Log:
QPID-4793: Change test so that regex.h works on other unixes
Modified:
qpid/trunk/qpid/cpp/src/qpid/sys/regex.h
Modified: qpid/trunk/qpid/cpp/src/qpid/sys/regex.h
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/regex.h?rev=1477822&r1=1477821&r2=1477822&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/regex.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/regex.h Tue Apr 30 20:53:58 2013
@@ -19,7 +19,7 @@
*
*/
-#ifdef _POSIX_SOURCE
+#if defined(_POSIX_SOURCE) || defined(__unix__)
# include <stdexcept>
# include <string>
# include <regex.h>
@@ -38,7 +38,7 @@
namespace qpid {
namespace sys {
-#ifdef _POSIX_SOURCE
+#if defined(_POSIX_SOURCE) || defined(__unix__)
class regex {
::regex_t re;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]