Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libjxl] Modify the header files that libjxl needs to generate #13

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion src/third_party/libjxl/gen_headers/jxl/jxl_export.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 The Chromium Authors
// Copyright 2023 The Chromium Authors, Alex313031, gz83, and mo271
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Expand All @@ -9,3 +9,46 @@
#define JXL_DEPRECATED

#endif // THIRD_PARTY_LIBJXL_GEN_HEADERS_JXL_JXL_EXPORT_H_

#ifndef JXL_THREADS_EXPORT_H
#define JXL_THREADS_EXPORT_H

#ifdef JXL_THREADS_STATIC_DEFINE
#define JXL_THREADS_EXPORT
#define JXL_THREADS_NO_EXPORT
#else
#ifndef JXL_THREADS_EXPORT
#ifdef JXL_THREADS_INTERNAL_LIBRARY_BUILD
/* We are building this library */
#define JXL_THREADS_EXPORT __attribute__((visibility("default")))
#else
/* We are using this library */
#define JXL_THREADS_EXPORT __attribute__((visibility("default")))
#endif
#endif

#ifndef JXL_THREADS_NO_EXPORT
#define JXL_THREADS_NO_EXPORT __attribute__((visibility("hidden")))
#endif
#endif

#ifndef JXL_THREADS_DEPRECATED
#define JXL_THREADS_DEPRECATED __attribute__((__deprecated__))
#endif

#ifndef JXL_THREADS_DEPRECATED_EXPORT
#define JXL_THREADS_DEPRECATED_EXPORT JXL_THREADS_EXPORT JXL_THREADS_DEPRECATED
#endif

#ifndef JXL_THREADS_DEPRECATED_NO_EXPORT
#define JXL_THREADS_DEPRECATED_NO_EXPORT \
JXL_THREADS_NO_EXPORT JXL_THREADS_DEPRECATED
#endif

#if 0 /* DEFINE_NO_DEPRECATED */
#ifndef JXL_THREADS_NO_DEPRECATED
#define JXL_THREADS_NO_DEPRECATED
#endif
#endif

#endif /* JXL_THREADS_EXPORT_H */