Differences From Artifact [13da37c718]:
- File src/macros.h — part of check-in [171f3ba831] at 2021-05-01 02:39:12 on branch trunk — Fix compiling for AmigaOS (user: js, size: 18147) [annotate] [blame] [check-ins using] [more...]
To Artifact [60a41b82a1]:
- File
src/macros.h
— part of check-in
[e53c0160a8]
at
2022-06-06 07:06:25
on branch trunk
— Always implement dummy for OF_UNAVAILABLE methods
GCC now supports the attribute, but still complains if the method is not
implemented, so always implement it with a method that throws. (user: js, size: 18304) [annotate] [blame] [check-ins using] [more...]
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
︙ | |||
252 253 254 255 256 257 258 | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | - | # define OF_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) #else # define OF_WARN_UNUSED_RESULT #endif #if __has_attribute(__unavailable__) # define OF_UNAVAILABLE __attribute__((__unavailable__)) |
︙ | |||
409 410 411 412 413 414 415 | 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 | - + - - + + + + + - - - - + + + + + + + | #define OF_DESTRUCTOR(prio) \ static void __attribute__((__destructor__(prio))) \ OF_PREPROCESSOR_CONCAT(destructor, __LINE__)(void) static OF_INLINE uint16_t OF_CONST_FUNC OFByteSwap16Const(uint16_t i) { |
︙ | |||
510 511 512 513 514 515 516 | 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 | - + + | "bswap %%eax\n\t" "bswap %%edx\n\t" "xchgl %%eax, %%edx" : "=A"(i) : "0"(i) ); #else |
︙ |