Skip to content

Commit

Permalink
Remove _FORTIFY_SOURCE setting from setup.py and replace wchar.h with…
Browse files Browse the repository at this point in the history
… cwchar in python_bindings.cpp for improved compatibility and standard compliance
  • Loading branch information
absternator committed Feb 25, 2025
1 parent a5dab16 commit ec98319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def build_extension(self, ext):
extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
'-DPYTHON_EXECUTABLE=' + sys.executable,
'-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON',
'-D_FORTIFY_SOURCE=0']
'-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']

cfg = 'Debug' if self.debug else 'Release'
build_args = ['--config', cfg]
Expand Down
2 changes: 1 addition & 1 deletion src/python_bindings.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 2021 John Lees, Gerry Tonkin-Hill, Zhirong Yang
// See LICENSE files

#include <wchar.h>
#include <cwchar>
#include "pairsnp.hpp"
#include "sound.hpp"
#include "wtsne.hpp"
Expand Down

0 comments on commit ec98319

Please sign in to comment.