forked from goatshriek/stumpless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seperate config_fopen wrapper (goatshriek#310)
Continuing the elimination of include/private/config/wrapper.h by moving another function into its own wrapper header. Also adds a gitignore rule for DS_Store files so that they are not inadvertently added in the future. This fixes goatshriek#298, which can be referenced for more details.
- Loading branch information
1 parent
25b3bc5
commit c1adb39
Showing
5 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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,33 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
/* | ||
* Copyright 2022 Joel E. Anderson | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef __STUMPLESS_PRIVATE_CONFIG_WRAPPER_FOPEN_H | ||
# define __STUMPLESS_PRIVATE_CONFIG_WRAPPER_FOPEN_H | ||
|
||
# include "private/config.h" | ||
|
||
/* definition of config_fopen */ | ||
# ifdef HAVE_FOPEN_S | ||
# include "private/config/have_fopen_s.h" | ||
# define config_fopen fopen_s_fopen | ||
# else | ||
# include <stdio.h> | ||
# define config_fopen fopen | ||
# endif | ||
|
||
#endif /* __STUMPLESS_PRIVATE_CONFIG_WRAPPER_FOPEN_H */ |
This file contains 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 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