File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 506
506
#endif
507
507
#endif
508
508
509
+ //
510
+ // std::nullptr_t when this type is not available
511
+ //
512
+ #if defined(NO_CXX11_NULLPTR_T)
513
+ namespace std {
514
+ typedef decltype (nullptr ) nullptr_t;
515
+ }
516
+ #endif
509
517
510
518
#endif
Original file line number Diff line number Diff line change @@ -1028,6 +1028,23 @@ android | gamecube | psp | wii)
1028
1028
;;
1029
1029
esac
1030
1030
1031
+ # Check if std::nullptr_t is available
1032
+ echo_n " Checking if C++11 std::nullptr_t is available..."
1033
+ cat > $TMPC << EOF
1034
+ #include <cstddef>
1035
+ int main(int argc, char *argv[]) {
1036
+ std::nullptr_t i = nullptr;
1037
+ return 0;
1038
+ }
1039
+ EOF
1040
+ cc_check
1041
+ if test " $TMPR " -eq 0; then
1042
+ echo yes
1043
+ else
1044
+ echo no
1045
+ define_in_config_if_yes yes ' NO_CXX11_NULLPTR_T'
1046
+ fi
1047
+
1031
1048
if test -n " $STRINGS " ; then
1032
1049
_strings=$STRINGS
1033
1050
else
You can’t perform that action at this time.
0 commit comments