<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98506>98506</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] Missing predefined macroses?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chestnykh
</td>
</tr>
</table>
<pre>
I've noticed that for x86-64 gcc (i use gcc-14.1.1) defines
`__SIG_ATOMIC_MIN__` to `-__SIG_ATOMIC_MAX__ - 1`
and
`__SIG_ATOMIC_TYPE__` to `int`
when clang doesn't define these macroses.
clang (trunk) defines only `__SIG_ATOMIC_MAX__` and `__SIG_ATOMIC_WIDTH__` (which are also defined by gcc).
Should we define `__SIG_ATOMIC_MIN__` and `__SIG_ATOMIC_TYPE__` for more compatibility with gcc?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0UsFu2zoQ_BrqsrBArUTJOujg91y3PqQtkABtTwJFrUQ2NGmIVFz_fSHbaVIkPRHE7szOzo4MwYyOqGHiPya2iZyj9lOjNIXozo866Xx_bvYMqycC56NR1EPUMsLgJ_i1LldlAaNSwHBtYA60fFZZkWZpxrCGngbjKDC-ZXzDSt629_uP7ebhy93-__Zu_7ltWckhemAlX_1d3HxvW1hBxkp-hUvXv8_z8OPrh9dExsU_oJMmB8pKN0LvKTiGVbypgqgpEBykmnygkF4B116G6zjN7vHVDuCdPcObHRaZy2jp-jfFb_vtw6drmeH6pI3SICcCaYO_0fbQnRfPGNY3Affaz7aHEz3L_Kdt74188WI50MFPBMofjjKazlgTz3AyUV8G5rukb_K-zmuZUJNVyKtM1LlIdMMrXnPVIYl-kAWvhaoHWXcVJzEIrDExDXIseJVlWZmvRZ6qrEPBBy56KQscKlZwOkhjU2ufDqmfxsSEMFNTrwUvEys7suGSOcSL4Qxxid_ULP2rbh4DK7g1IYYXhmiivQT1ihBbuDMhGDfCcaJnN5-vuaw3T7bRMR4DyzcMdwx3o4l67lLlDwx3C_HtWR0n_5NUZLi76AwMd1epTw3-DgAA__9GZ_gn">