forked from commonmark/cmark
-
Notifications
You must be signed in to change notification settings - Fork 108
various CMake fixes and cleanup #40
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
78b85b7
use CMake-generated config.h if available
QuietMisdreavus 4347ac2
tweak static export header definitions
QuietMisdreavus 06c298a
don't use /include on generated-header include paths
QuietMisdreavus f7b7b91
remove unused section from static export headers
QuietMisdreavus 91cbac3
clean up config headers
QuietMisdreavus 32891c2
include windows.h instead of synchapi.h for win32
QuietMisdreavus 7c1be38
fix uninitialized-variable warning
QuietMisdreavus 7e40c73
use CMake-generated {project}_export.h if available
QuietMisdreavus 60b6240
use underscored visibility attribute
QuietMisdreavus fbefbc3
use WIN32_LEAN_AND_MEAN to avoid symbol collisions
QuietMisdreavus 5bc7a26
use C standard version to guard stdbool.h
QuietMisdreavus c505c99
build with C11 on MSVC where it's supported
QuietMisdreavus e5e596e
check for unistd.h during CMake or with more-compatible checks
QuietMisdreavus 6688253
use CMake headers via a build-time switch instead of __has_include
QuietMisdreavus 48dd1d8
use CMAKE_C_STANDARD to set C standard
QuietMisdreavus 492f0b5
set CMARK_USE_CMAKE_HEADERS at the top level
QuietMisdreavus 87fa5e7
use __declspec(deprecated) for deprecated functions on Windows
QuietMisdreavus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#ifndef CMARK_GFM_EXTENSIONS_EXPORT_H | ||
#define CMARK_GFM_EXTENSIONS_EXPORT_H | ||
|
||
#ifdef CMARK_USE_CMAKE_HEADERS | ||
// if the CMake config header exists, use that instead of this Swift package prebuilt one | ||
// we need to undefine the header guard, since export.h uses the same one | ||
#undef CMARK_GFM_EXTENSIONS_EXPORT_H | ||
#include "cmark-gfm-extensions_export.h" | ||
#else | ||
|
||
#ifdef CMARK_GFM_EXTENSIONS_STATIC_DEFINE | ||
# define CMARK_GFM_EXTENSIONS_EXPORT | ||
# define CMARK_GFM_EXTENSIONS_NO_EXPORT | ||
#else | ||
# if defined(_WIN32) | ||
# ifndef CMARK_GFM_EXTENSIONS_EXPORT | ||
# ifdef libcmark_gfm_extensions_EXPORTS | ||
# define CMARK_GFM_EXTENSIONS_EXPORT __declspec(dllexport) | ||
# else | ||
# define CMARK_GFM_EXTENSIONS_EXPORT __declspec(dllimport) | ||
# endif | ||
# endif | ||
|
||
# ifndef CMARK_GFM_EXTENSIONS_NO_EXPORT | ||
# define CMARK_GFM_EXTENSIONS_NO_EXPORT | ||
# endif | ||
# else | ||
# ifndef CMARK_GFM_EXTENSIONS_EXPORT | ||
# ifdef libcmark_gfm_extensions_EXPORTS | ||
# define CMARK_GFM_EXTENSIONS_EXPORT __attribute__((__visibility__("default"))) | ||
# else | ||
# define CMARK_GFM_EXTENSIONS_EXPORT __attribute__((__visibility__("default"))) | ||
# endif | ||
# endif | ||
|
||
# ifndef CMARK_GFM_EXTENSIONS_NO_EXPORT | ||
# define CMARK_GFM_EXTENSIONS_NO_EXPORT __attribute__((__visibility__("hidden"))) | ||
# endif | ||
# endif | ||
#endif | ||
|
||
#ifndef CMARK_GFM_EXTENSIONS_DEPRECATED | ||
# if defined(_WIN32) | ||
# define CMARK_GFM_EXTENSIONS_DEPRECATED __declspec(deprecated) | ||
# else | ||
# define CMARK_GFM_EXTENSIONS_DEPRECATED __attribute__ ((__deprecated__)) | ||
# endif | ||
#endif | ||
|
||
#ifndef CMARK_GFM_EXTENSIONS_DEPRECATED_EXPORT | ||
# define CMARK_GFM_EXTENSIONS_DEPRECATED_EXPORT CMARK_GFM_EXTENSIONS_EXPORT CMARK_GFM_EXTENSIONS_DEPRECATED | ||
#endif | ||
|
||
#ifndef CMARK_GFM_EXTENSIONS_DEPRECATED_NO_EXPORT | ||
# define CMARK_GFM_EXTENSIONS_DEPRECATED_NO_EXPORT CMARK_GFM_EXTENSIONS_NO_EXPORT CMARK_GFM_EXTENSIONS_DEPRECATED | ||
#endif | ||
|
||
#endif /* CMARK_GFM_EXTENSIONS_EXPORT_H */ | ||
|
||
#endif /* "cmark-gfm-extensions_export.h" */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.