diff options
author | John Wiegley <johnw@newartisans.com> | 2019-01-25 15:48:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 15:48:39 -0800 |
commit | 7f8f3275ad251d805eaeda379b7dda7291167243 (patch) | |
tree | 73d600e971695b4b08ce02d9302ae03c3b1922e8 /src/strptime.cc | |
parent | 644db80fd377a4ee05bc2d6385b99ab152c13958 (diff) | |
parent | 347029a803475c21bf9fa508f27b0ed7233ff312 (diff) | |
download | fork-ledger-7f8f3275ad251d805eaeda379b7dda7291167243.tar.gz fork-ledger-7f8f3275ad251d805eaeda379b7dda7291167243.tar.bz2 fork-ledger-7f8f3275ad251d805eaeda379b7dda7291167243.zip |
Merge pull request #1726 from scfc/compile-strptime-only-on-windows
Compile strptime.cc only on Windows
Diffstat (limited to 'src/strptime.cc')
-rw-r--r-- | src/strptime.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/strptime.cc b/src/strptime.cc index 069b9267..ac6885a6 100644 --- a/src/strptime.cc +++ b/src/strptime.cc @@ -12,7 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if defined(_WIN32) || defined(__CYGWIN__) +#if !(defined(_WIN32) || defined(__CYGWIN__)) +#error This file should only be compiled on Windows. +#endif + // Implement strptime under windows #include "strptime.h" @@ -200,5 +203,3 @@ static char* _strptime(const char *s, const char *format, struct tm *tm) { char* strptime(const char *buf, const char *fmt, struct tm *tm) { return _strptime(buf, fmt, tm); } - -#endif // _WIN32 |