Skip to content

Commit ffcf187

Browse files
author
Feiyu Chan
authored
add NOMINMAX to compile on windows (#52)
add NOMINMAX to compile on windows
1 parent e804bd5 commit ffcf187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/operators/spectral_op.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
limitations under the License. */
1111

1212
#pragma once
13+
#define NOMINMAX // to use std::min std::max correctly on windows
1314
#include <iostream>
1415
#include <memory>
1516
#include <string>

0 commit comments

Comments
 (0)