Files
gentoo/net-analyzer/netperf/files/netperf-2.7.0-inline.patch
Sam James 87b31524f9 net-analyzer/netperf: EAPI 7, eutils--
Signed-off-by: Sam James <sam@gentoo.org>
2021-04-03 16:54:59 +01:00

33 lines
902 B
Diff

# Copyright Seblu 2015
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -3997,11 +3997,7 @@
}
}
-#ifdef WIN32
-__forceinline void demo_interval_display(double actual_interval)
-#else
- inline void demo_interval_display(double actual_interval)
-#endif
+void demo_interval_display(double actual_interval)
{
static int count = 0;
struct timeval now;
@@ -4060,15 +4056,7 @@
important compilers have supported such a construct so it should
not be a big deal. raj 2012-01-23 */
-#ifdef WIN32
-/* It would seem that the Microsoft compiler will not inline across
- source files. So there is little point in having an inline
- directive in that situation. Of course that makes me wonder if an
- inline directive has to appear in netlib.h... */
void demo_interval_tick(uint32_t units)
-#else
- inline void demo_interval_tick(uint32_t units)
-#endif
{
double actual_interval = 0.0;