nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

deprecated.h (628B)


      1 #ifndef DEPRECATED_H
      2 #define DEPRECATED_H
      3 
      4 /*
      5  * We sometimes decide certain functions should no longer be called.
      6  * If valuable external patches still call them, we wait to delete them
      7  * until those patches stop being valuable.
      8  *
      9  * In the meantime, we
     10  *
     11  * 1. Mark these functions deprecated, so compilers will warn people
     12  * 2. Optionally define them out of existence, mainly for developer builds
     13  */
     14 
     15 #ifndef DEPRECATED_FUNCTIONS_REMOVED
     16 #define DEPRECATED_FUNCTIONS_AVAILABLE
     17 #endif
     18 
     19 #if defined(__clang__) || defined(__GNUC__)
     20 #define _deprecated_ __attribute__((deprecated))
     21 #else
     22 #define _deprecated_
     23 #endif
     24 
     25 #endif