From 301437e693fe8bfff6471ff3d88b31a85627d1a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 17 Mar 2017 20:47:32 -0400 Subject: Updated static initializers When MSVC init_seg or GCC init_priority is available, we don't need to use the Singleton. We only need to create a file scope class variable and place it in the segment for MSVC or provide the attribute for GCC. An additional upside is we cleared all the memory leaks that used to be reported by MSVC for debug builds. --- rdrand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rdrand.cpp') diff --git a/rdrand.cpp b/rdrand.cpp index 26be8c43..74ecc34e 100644 --- a/rdrand.cpp +++ b/rdrand.cpp @@ -27,7 +27,7 @@ // For Linux, NASM is optional. Run rdrand-nasm.sh, and then make // with "USE_NASM" like so: USE_NASM=1 make -j 4. The makefile -// will add the appropriate defines when building rdrand.cpp, +// will add the appropriate defines when building rdrand.cpp, // and add the appropriate object file during link. #if 0 -- cgit v1.2.1