Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

  1. //--------------------------------------------------------------------------
  2. // strconst.h
  3. //--------------------------------------------------------------------------
  4. #pragma once
  5. //--------------------------------------------------------------------------
  6. // Constant String Definition Macros
  7. //--------------------------------------------------------------------------
  8. #ifdef __cplusplus
  9. #define EXTERN_C extern "C"
  10. #else
  11. #define EXTERN_C extern
  12. #endif
  13. #ifndef STRCONSTA
  14. #ifdef DEFINE_STRCONST
  15. #define STRCONSTA(x,y) EXTERN_C const char x[] = y
  16. #define STRCONSTW(x,y) EXTERN_C const WCHAR x[] = L##y
  17. #else
  18. #define STRCONSTA(x,y) EXTERN_C const char x[]
  19. #define STRCONSTW(x,y) EXTERN_C const WCHAR x[]
  20. #endif
  21. #endif
  22. //--------------------------------------------------------------------------
  23. // Constant String
  24. //--------------------------------------------------------------------------
  25. STRCONSTA(c_szEmpty, "");
  26. STRCONSTW(c_wszEmpty, "");