Skip to content

Commit

Permalink
add NOMINMAX to compile on windows (PaddlePaddle#52)
Browse files Browse the repository at this point in the history
 add NOMINMAX to compile on windows
  • Loading branch information
Feiyu Chan authored Sep 16, 2021
1 parent e804bd5 commit ffcf187
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddle/fluid/operators/spectral_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
limitations under the License. */

#pragma once
#define NOMINMAX // to use std::min std::max correctly on windows
#include <iostream>
#include <memory>
#include <string>
Expand Down

0 comments on commit ffcf187

Please sign in to comment.