From 663d88827132612e1fc8af07a50a2c83dbe61e4c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 27 Jan 2024 17:55:58 -0800 Subject: [PATCH] Use cstdio to avoid exception warning during build. --- tests/cplusplus_pair.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cplusplus_pair.cc b/tests/cplusplus_pair.cc index 92387ce3d..002c6f580 100644 --- a/tests/cplusplus_pair.cc +++ b/tests/cplusplus_pair.cc @@ -1,5 +1,5 @@ // -// Copyright 2017 Garrett D'Amore +// Copyright 2024 Staysail Systems, Inc. // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -10,8 +10,8 @@ #include "nng/nng.h" #include "nng/protocol/pair1/pair.h" +#include #include -#include #define SOCKET_ADDRESS "inproc://c++" @@ -68,11 +68,11 @@ main(int argc, char **argv) throw nng_strerror(rv); } - std::cout << "Pass." << std::endl; + printf("Pass.\n"); #else (void) argc; (void) argv; - std::cout << "Skipped (protocol unconfigured)." << std::endl; + printf("Skipped (protocol unconfigured).\n"); #endif return (0);