Skip to content

bpo-35025: Properly guard the CLOCK_GETTIME et al macros in timemodule.c#9961

Merged
benjaminp merged 4 commits into
python:masterfrom
maxbelanger:fix-timemodule-macos-availability
Oct 21, 2018
Merged

bpo-35025: Properly guard the CLOCK_GETTIME et al macros in timemodule.c#9961
benjaminp merged 4 commits into
python:masterfrom
maxbelanger:fix-timemodule-macos-availability

Conversation

@maxbelanger

@maxbelanger maxbelanger commented Oct 19, 2018

Copy link
Copy Markdown
Contributor

This patch works around the following compile errors when building timemodule.c on macOS using Xcode with -Werror=unguarded-availability and -mmacosx-version-min=<xx>.

https://bugs.python.org/issue35025

…dule` based

on the availability of the parent functions
@benjaminp benjaminp merged commit 9445118 into python:master Oct 21, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @maxbelanger for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-10019 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 21, 2018
…timemodule.c. (pythonGH-9961)

Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
(cherry picked from commit 9445118)

Co-authored-by: Max Bélanger <aeromax@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-10020 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 21, 2018
…timemodule.c. (pythonGH-9961)

Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
(cherry picked from commit 9445118)

Co-authored-by: Max Bélanger <aeromax@gmail.com>
miss-islington added a commit that referenced this pull request Oct 21, 2018
…timemodule.c. (GH-9961)

Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
(cherry picked from commit 9445118)

Co-authored-by: Max Bélanger <aeromax@gmail.com>
miss-islington added a commit that referenced this pull request Oct 21, 2018
…timemodule.c. (GH-9961)

Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions
(cherry picked from commit 9445118)

Co-authored-by: Max Bélanger <aeromax@gmail.com>
@maxbelanger maxbelanger deleted the fix-timemodule-macos-availability branch October 26, 2018 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants