forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3f28bd7
committed
Add work-around for VA_ARGS_NARGS() on MSVC.
The previous coding of VA_ARGS_NARGS() always returned 1 on VisualStudio, because it treats __VA_ARGS__ as a single token unless you jumpthrough extra hoops. Newer compilers have an option to fix that. Add acomment about that so that we can remember to clean this up in thefuture when our minimum MSVC version advances.Author: Victor Spirin <v.spirin@postgrespro.ru>Reviewed-by: Thomas Munro <thomas.munro@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/f450fc57-a147-19d0-e50c-33571c52cc13%40postgrespro.ru1 parent01be9d4 commit3f28bd7
1 file changed
+20
-0
lines changedLines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
324 | 324 |
| |
325 | 325 |
| |
326 | 326 |
| |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
328 | 346 |
| |
329 | 347 |
| |
330 | 348 |
| |
| |||
334 | 352 |
| |
335 | 353 |
| |
336 | 354 |
| |
| 355 | + | |
| 356 | + | |
337 | 357 |
| |
338 | 358 |
| |
339 | 359 |
| |
|
0 commit comments
Comments
(0)