You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source file src/time_zone_format.cc does #define _XOPEN_SOURCE in order to use strptime.
However, on QNX (at least v 7.1) in <sys/platform.h> the definition isn't merely checked for presence, but is value-tested. It understands values 500, 600, and 700, and otherwise will bail out with #error This version of XOPEN_SOURCE is not supported.
The header is included like this (please note that I'm using cctz as part of abseil library, hence the paths):
In file included from .../qnx7/usr/include/limits.h:29,
from .../qnx7/usr/include/c++/v1/limits.h:58,
from external/com_google_absl/absl/base/config.h:52,
from external/com_google_absl/absl/time/internal/cctz/src/time_zone_format.cc:27:
I think it should be something like #define _XOPEN_SOURCE 500 (at least this works fine for me), or at least so under #if defined(__QNX__).
The text was updated successfully, but these errors were encountered:
xzxzzxzxzca
changed the title
[Bug]: compilation of time_zone_format.cc broken under QNX
[Bug]: time_zone_format.cc causes compilation issues under QNX
Jul 21, 2023
devbww
added a commit
to devbww/cctz
that referenced
this issue
Jul 21, 2023
Source file
src/time_zone_format.cc
does#define _XOPEN_SOURCE
in order to usestrptime
.However, on QNX (at least v 7.1) in
<sys/platform.h>
the definition isn't merely checked for presence, but is value-tested. It understands values 500, 600, and 700, and otherwise will bail out with#error This version of XOPEN_SOURCE is not supported
.The header is included like this (please note that I'm using cctz as part of abseil library, hence the paths):
I think it should be something like
#define _XOPEN_SOURCE 500
(at least this works fine for me), or at least so under#if defined(__QNX__)
.The text was updated successfully, but these errors were encountered: