SkLeanWindows.h 774 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkLeanWindows_DEFINED
  8. #define SkLeanWindows_DEFINED
  9. #include "include/core/SkTypes.h"
  10. #ifdef SK_BUILD_FOR_WIN
  11. # ifndef WIN32_LEAN_AND_MEAN
  12. # define WIN32_LEAN_AND_MEAN
  13. # define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
  14. # endif
  15. # ifndef NOMINMAX
  16. # define NOMINMAX
  17. # define NOMINMAX_WAS_LOCALLY_DEFINED
  18. # endif
  19. #
  20. # include <windows.h>
  21. #
  22. # ifdef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
  23. # undef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
  24. # undef WIN32_LEAN_AND_MEAN
  25. # endif
  26. # ifdef NOMINMAX_WAS_LOCALLY_DEFINED
  27. # undef NOMINMAX_WAS_LOCALLY_DEFINED
  28. # undef NOMINMAX
  29. # endif
  30. #endif
  31. #endif // SkLeanWindows_DEFINED