Staging
v0.5.1
https://github.com/python/cpython
Revision 5711c815f51a3eaa52dfc22292ad184ef596a5ca authored by Miss Islington (bot) on 30 September 2020, 22:49:52 UTC, committed by Ɓukasz Langa on 04 October 2020, 15:30:48 UTC

From `In particularly,` to `In particular,`
(cherry picked from commit 63298930fb531ba2bb4f23bc3b915dbf1e17e9e1)

Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
1 parent 900b985
Raw File
Tip revision: 5711c815f51a3eaa52dfc22292ad184ef596a5ca authored by Miss Islington (bot) on 30 September 2020, 22:49:52 UTC
Fix grammar in secrets module documentation (GH-22467)
Tip revision: 5711c81
exports.h
#ifndef Py_EXPORTS_H
#define Py_EXPORTS_H

#if defined(_WIN32) || defined(__CYGWIN__)
    #define Py_IMPORTED_SYMBOL __declspec(dllimport)
    #define Py_EXPORTED_SYMBOL __declspec(dllexport)
    #define Py_LOCAL_SYMBOL
#else
/*
 * If we only ever used gcc >= 5, we could use __has_attribute(visibility)
 * as a cross-platform way to determine if visibility is supported. However,
 * we may still need to support gcc >= 4, as some Ubuntu LTS and Centos versions
 * have 4 < gcc < 5.
 */
    #ifndef __has_attribute
      #define __has_attribute(x) 0  // Compatibility with non-clang compilers.
    #endif
    #if (defined(__GNUC__) && (__GNUC__ >= 4)) ||\
        (defined(__clang__) && __has_attribute(visibility))
        #define Py_IMPORTED_SYMBOL __attribute__ ((visibility ("default")))
        #define Py_EXPORTED_SYMBOL __attribute__ ((visibility ("default")))
        #define Py_LOCAL_SYMBOL  __attribute__ ((visibility ("hidden")))
    #else
        #define Py_IMPORTED_SYMBOL
        #define Py_EXPORTED_SYMBOL
        #define Py_LOCAL_SYMBOL
    #endif
#endif

#endif /* Py_EXPORTS_H */
back to top