Open Bug 584953 Opened 10 years ago Updated 9 years ago

rework NS_DEPRECATED

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set

Tracking

()

People

(Reporter: timeless, Unassigned)

Details

NS_DEPRECATED works nicely w/ msvc, however the combination of NS_DEPRECATED and NS_HIDDEN does not work with gcc

the only form that works is to provide both deprecated and visibility("hidden") in the same __attribute__(...).

For reference, Apple handles it this way:

/usr/include/AvailabilityInternal.h:#define
__AVAILABILITY_INTERNAL_DEPRECATED         __attribute__((deprecated, visibility("default")))
You need to log in before you can comment on or make changes to this bug.