Skip to content

Commit 235bcf5

Browse files
committed
windows #define belongs in .cpp, not .h
1 parent fef7530 commit 235bcf5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pystring.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
namespace pystring
4343
{
4444

45+
#if defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS) || defined(_MSC_VER)
46+
#ifndef WINDOWS
47+
#define WINDOWS
48+
#endif
49+
#endif
50+
4551
// This definition codes from configure.in in the python src.
4652
// Strictly speaking this limits us to str sizes of 2**31.
4753
// Should we wish to handle this limit, we could use an architecture

pystring.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
#include <string>
3838
#include <vector>
3939

40-
#if defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS) || defined(_MSC_VER)
41-
#ifndef WINDOWS
42-
#define WINDOWS
43-
#endif
44-
#endif
45-
4640
namespace pystring
4741
{
4842

0 commit comments

Comments
 (0)