qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1478421 - /qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h
Date Thu, 02 May 2013 15:57:25 GMT
Author: astitcher
Date: Thu May  2 15:57:24 2013
New Revision: 1478421

URL: http://svn.apache.org/r1478421
Log:
QPID-4793: Change test so that regex.h works on other unixes

Change brought in from trunk r1477822

Modified:
    qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h

Modified: qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h
URL: http://svn.apache.org/viewvc/qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h?rev=1478421&r1=1478420&r2=1478421&view=diff
==============================================================================
--- qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h (original)
+++ qpid/branches/0.22/qpid/cpp/src/qpid/sys/regex.h Thu May  2 15:57:24 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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message