ChakraPlatform.h 935 B

123456789101112131415161718192021222324252627
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Copyright (c) ChakraCore Project Contributors. All rights reserved.
  4. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  5. //-------------------------------------------------------------------------------------------------------
  6. #pragma once
  7. #include "UnicodeText.h"
  8. // Configure whether we configure a signal handler
  9. // to produce perf-<pid>.map files
  10. #ifndef PERFMAP_TRACE_ENABLED
  11. #define PERFMAP_TRACE_ENABLED 0
  12. #endif
  13. #if PERFMAP_TRACE_ENABLED
  14. #include "PerfTrace.h"
  15. #endif
  16. #include "PlatformAgnostic/DateTime.h"
  17. #include "PlatformAgnostic/AssemblyCommon.h"
  18. #if !defined(_WIN32) && defined(DEBUG)
  19. // This define from sal.h conflicts with Linux's signal.h
  20. #undef __reserved
  21. #include <signal.h> // raise(SIGINT)
  22. #endif