Skip to content

Commit 64ef1ba

Browse files
committed
ESDK-4022: Fix x86 build for RFA
1 parent 5d648c9 commit 64ef1ba

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

Cpp-C/Eta/Impl/Transport/rsslWebSocketTransportImpl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ RSSL_RSSL_SOCKET_IMPL_FAST(RsslRet) rsslWebSocketPing(rsslChannelImpl *rsslChnlI
738738
return retVal;
739739
}
740740

741-
RSSL_RSSL_SOCKET_IMPL_FAST(RsslRet) rsslWebSocketCloseChannel(rsslChannelImpl* rsslChnlImpl, RsslError *error)
741+
RsslRet rsslWebSocketCloseChannel(rsslChannelImpl* rsslChnlImpl, RsslError *error)
742742
{
743743
RsslSocketChannel *rsslSocketChannel = (RsslSocketChannel*)rsslChnlImpl->transportInfo;
744744

Cpp-C/Eta/Impl/Transport/rtr/rsslSocketTransportImpl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ RSSL_RSSL_SOCKET_IMPL_FAST(RsslRet) rsslCloseSocketSrvr(rsslServerImpl *rsslSrvr
734734

735735
/* Socket Channel functions for active WS connections using a non-RWF protocol */
736736
/* Contains code necessary to close a socket connection (client or server side) */
737-
RSSL_RSSL_SOCKET_IMPL_FAST(RsslRet) rsslWebSocketCloseChannel(rsslChannelImpl* rsslChnlImpl, RsslError *error);
737+
RsslRet rsslWebSocketCloseChannel(rsslChannelImpl* rsslChnlImpl, RsslError *error);
738738

739739
/* Contains code necessary to read from a socket connection (client or server side) */
740740
RSSL_RSSL_SOCKET_IMPL_FAST(RsslBuffer*) rsslWebSocketRead(rsslChannelImpl* rsslChnlImpl, RsslReadOutArgs *readOutArgs, RsslRet *readRet, RsslError *error);

Cpp-C/Eta/TestTools/UnitTests/rsslDataTest/rsslDataTest.C

+20-4
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@
4343
#define snprintf _snprintf
4444
#include <windows.h>
4545

46-
#ifndef nextafter
46+
#if defined(_MSC_VER) && (_MSC_VER == 1700 || _MSC_VER == 1800)
4747
#define nextafter _nextafter
48+
#if defined _M_X64
49+
#define nextafterf _nextafterf /* x64 only */
50+
#else
51+
#define DO_NOT_TEST_FLOAT
4852
#endif
49-
50-
#ifndef nextafterf
51-
#define nextafterf _nextafterf
5253
#endif
54+
5355
#endif
5456

5557
#include "dictionaries.h"
@@ -9605,6 +9607,7 @@ void testCompareFloatToReal(const RsslReal testReal, const RsslInt testIntVal)
96059607
}
96069608
}
96079609

9610+
#ifndef DO_NOT_TEST_FLOAT
96089611
void testFloatToRealConvert(const RsslFloat dFactor, const RsslRealHints rhExponent)
96099612
{
96109613
RsslFloat testFloat;
@@ -9714,7 +9717,9 @@ void testFloatToRealConvert(const RsslFloat dFactor, const RsslRealHints rhExpon
97149717
testCompareFloatToReal(testReal, (std::numeric_limits<RsslInt>::min)());
97159718
}
97169719
}
9720+
#endif
97179721

9722+
#ifndef DO_NOT_TEST_FLOAT
97189723
TEST(realFloatIntConvertTest, RealHintExponentAllTest)
97199724
{
97209725
testFloatToRealConvert(1e14f, RSSL_RH_EXPONENT_14);
@@ -9751,6 +9756,7 @@ TEST(realFloatIntConvertTest, RealHintExponentAllTest)
97519756
testFloatToRealConvert(128.f, RSSL_RH_FRACTION_128);
97529757
testFloatToRealConvert(256.f, RSSL_RH_FRACTION_256);
97539758
}
9759+
#endif
97549760

97559761
TEST(realDoubleIntConvertTest, RealHintExponent0Test)
97569762
{
@@ -10455,6 +10461,7 @@ TEST(realDoubleIntConvertTest, RealHintFraction_256Test)
1045510461
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1045610462
}
1045710463

10464+
#ifndef DO_NOT_TEST_FLOAT
1045810465
TEST(realFloatIntConvertTest, RealHintExponent0Test)
1045910466
{
1046010467
RsslFloat testFloat;
@@ -10624,7 +10631,9 @@ TEST(realFloatIntConvertTest, RealHintExponent0Test)
1062410631
ASSERT_EQ(testReal.hint, rhExponent);
1062510632
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1062610633
}
10634+
#endif
1062710635

10636+
#ifndef DO_NOT_TEST_FLOAT
1062810637
TEST(realFloatIntConvertTest, RealHintExponent_14Test)
1062910638
{
1063010639
RsslFloat testFloat;
@@ -10721,7 +10730,9 @@ TEST(realFloatIntConvertTest, RealHintExponent_14Test)
1072110730
ASSERT_EQ(testReal.hint, rhExponent);
1072210731
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1072310732
}
10733+
#endif
1072410734

10735+
#ifndef DO_NOT_TEST_FLOAT
1072510736
TEST(realFloatIntConvertTest, RealHintExponent7Test)
1072610737
{
1072710738
RsslFloat testFloat;
@@ -10816,7 +10827,9 @@ TEST(realFloatIntConvertTest, RealHintExponent7Test)
1081610827
ASSERT_EQ(testReal.hint, rhExponent);
1081710828
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1081810829
}
10830+
#endif
1081910831

10832+
#ifndef DO_NOT_TEST_FLOAT
1082010833
TEST(realFloatIntConvertTest, RealHintFraction_1Test)
1082110834
{
1082210835
RsslFloat testFloat;
@@ -10965,7 +10978,9 @@ TEST(realFloatIntConvertTest, RealHintFraction_1Test)
1096510978
ASSERT_EQ(testReal.hint, rhExponent);
1096610979
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1096710980
}
10981+
#endif
1096810982

10983+
#ifndef DO_NOT_TEST_FLOAT
1096910984
TEST(realFloatIntConvertTest, RealHintFraction_256Test)
1097010985
{
1097110986
RsslFloat testFloat;
@@ -11060,6 +11075,7 @@ TEST(realFloatIntConvertTest, RealHintFraction_256Test)
1106011075
ASSERT_EQ(testReal.hint, rhExponent);
1106111076
ASSERT_EQ(testReal.value, (std::numeric_limits<RsslInt>::min)());
1106211077
}
11078+
#endif
1106311079

1106411080
TEST(dateTimeStringToDateTimeTest, dateTimeStringValueRejected)
1106511081
{

0 commit comments

Comments
 (0)