)]}'
{
  "commit": "0c9dce8f17a49940a13847913e5c0c4abcd21945",
  "tree": "1595c5d014624385f770c3052051ad20f162d1b1",
  "parents": [
    "5944f476f0dd596ab35040b08a097a267123427b"
  ],
  "author": {
    "name": "Zhongteng Gui",
    "email": "dragon-archer@outlook.com",
    "time": "Mon Aug 17 00:10:30 2026 +0800"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Tue Aug 18 22:58:05 2026 +0800"
  },
  "message": "headers: fix _CONST_RETURN warnings\n\nWith previous changes to _CONST_RETURN, GCC 7-14 will warn about strchr\nand similar functions with -Wbuiltin-declaration-mismatch, as GCC\u0027s\nbuiltin versions of these functions return non-const pointers even in\nC++ mode. Other versions of GCC and all versions of Clang are fine.\n\nThis commit fixes this by moving all C++ declartions of these functions\nunder extern \"C++\", similar to what glibc does. The difference between\nwe and glibc is that we only use __asm__ for the const versions of these\nfunctions, while glibc uses it for both. This is to avoid -Wodr warnings\nunder LTO.\n\nSigned-off-by: Zhongteng Gui \u003cdragon-archer@outlook.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7eb45738c511abd6fd0af095c182e2b10af6926c",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/corecrt_memory.h",
      "new_id": "779887dfdffe95dc82491b63ae368a723dad0a56",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/corecrt_memory.h"
    },
    {
      "type": "modify",
      "old_id": "22227a715149338af2694bac562bd86225b08242",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/corecrt_wstring.h",
      "new_id": "3231117a0632f1fa9b6f93ab530a5521f7869942",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/corecrt_wstring.h"
    },
    {
      "type": "modify",
      "old_id": "01859e94374d46ab49c893ae6ba754dd486b4fc7",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/string.h",
      "new_id": "86e44df33d0957a565d8c56a037f85d2c7f649ad",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/string.h"
    },
    {
      "type": "modify",
      "old_id": "357d06b741d94df3776e80dcfe33da213a59ac91",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/wchar.h",
      "new_id": "705f15317d88aab9f3a30152160086475964eb6e",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/wchar.h"
    }
  ]
}
