Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:42:27

0001 // Copyright 2016 the V8 project authors. All rights reserved.
0002 // Use of this source code is governed by a BSD-style license that can be
0003 // found in the LICENSE file.
0004 
0005 #ifndef V8_LIBPLATFORM_LIBPLATFORM_EXPORT_H_
0006 #define V8_LIBPLATFORM_LIBPLATFORM_EXPORT_H_
0007 
0008 #if defined(_WIN32)
0009 
0010 #ifdef BUILDING_V8_PLATFORM_SHARED
0011 #define V8_PLATFORM_EXPORT __declspec(dllexport)
0012 #elif USING_V8_PLATFORM_SHARED
0013 #define V8_PLATFORM_EXPORT __declspec(dllimport)
0014 #else
0015 #define V8_PLATFORM_EXPORT
0016 #endif  // BUILDING_V8_PLATFORM_SHARED
0017 
0018 #else  // defined(_WIN32)
0019 
0020 // Setup for Linux shared library export.
0021 #ifdef BUILDING_V8_PLATFORM_SHARED
0022 #define V8_PLATFORM_EXPORT __attribute__((visibility("default")))
0023 #else
0024 #define V8_PLATFORM_EXPORT
0025 #endif
0026 
0027 #endif  // defined(_WIN32)
0028 
0029 #endif  // V8_LIBPLATFORM_LIBPLATFORM_EXPORT_H_