[mapserver-commits] [MapServer/MapServer] aabeab: cmake: Define STDC_HEADERS for regex in mingw tool...

Biswapriyo Nath noreply at github.com
Sun Apr 23 04:49:37 PDT 2023


  Branch: refs/heads/backport-6873-to-branch-8-0
  Home:   https://github.com/MapServer/MapServer
  Commit: aabeab7dea0c8d3d4919262d6d3394b559e1765b
      https://github.com/MapServer/MapServer/commit/aabeab7dea0c8d3d4919262d6d3394b559e1765b
  Author: Biswapriyo Nath <nathbappai at gmail.com>
  Date:   2023-04-23 (Sun, 23 Apr 2023)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  cmake: Define STDC_HEADERS for regex in mingw toolchain

Defining STDC_HEADERS macro includes stdlib.h in regex.c which is
required for free, abort etc. function declarations. This fixes the
following compiler error with mingw clang.

regex.c:2042:3: error: call to undeclared library function 'free' with type
'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
regex.c:2784:11: error: call to undeclared library function 'abort' with type
'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]




More information about the MapServer-commits mailing list