home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / compat / warning.h < prev   
Encoding:
C/C++ Source or Header  |  1993-02-17  |  283 b   |  15 lines

  1. #ifndef WARNING_H
  2. #define WARNING_H
  3.  
  4. extern void __libc_warning (const char *);
  5.  
  6. #define __LIBC_WARNING(name)    { \
  7.   static int __old_##name##_warned = 0; \
  8.   if (!__old_##name##_warned) { \
  9.     __old_##name##_warned++; \
  10.     __libc_warning (#name); \
  11.   } \
  12. }
  13.  
  14. #endif /* WARNING_H */
  15.