Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_libc_unconst_h__
  3. #define __dj_include_libc_unconst_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #define unconst(__v, __t) __extension__ ({union { const __t __cp; __t __p; } __q; __q.__cp = __v; __q.__p;})
  16.  
  17. #endif /* !_POSIX_SOURCE */
  18. #endif /* !__STRICT_ANSI__ */
  19. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  20.  
  21. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  22. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27.  
  28. #endif /* __dj_include_libc_unconst_h__ */
  29.