[pcre-dev] [Bug 2334] "make test" reports test failures when…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2334] "make test" reports test failures when running on macOS (x86_64)
https://bugs.exim.org/show_bug.cgi?id=2334

Carlo Marcelo Arenas Belón <carenas@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86-64                      |All


--- Comment #27 from Carlo Marcelo Arenas Belón <carenas@???> ---
adding the include will ALWAYS define TARGET_OS_MAC so the right check should
use #if instead of #ifdef (or as used now #if defined)

not an IOS developer, but reading at the documentation (and their code), it
seems that TARGET_OS_MAC might be always set to 1 (even for IOS) and as shown
in the following excerpt from that header :

      +------------------------------------------------+
      |                TARGET_OS_MAC                   |
      | +---+  +-------------------------------------+ |
      | |   |  |          TARGET_OS_IPHONE           | |
      | |OSX|  | +-----+ +----+ +-------+ +--------+ | |
      | |   |  | | IOS | | TV | | WATCH | | BRIDGE | | |
      | |   |  | +-----+ +----+ +-------+ +--------+ | |
      | +---+  +-------------------------------------+ |
      +------------------------------------------------+


it would be better to use !TARGET_OS_IPHONE

--
You are receiving this mail because:
You are on the CC list for the bug.