cmake SAIL_HAVE_INIT_ONCE_EXECUTE_ONCE examples

HappySeaFox/sail cmake/sail_check_init_once_execute_once.cmake :5

check_c_source_compiles(
        "
            #define _WIN32_WINNT 0x0600
            #include <Windows.h>
            static BOOL CALLBACK OnceHandler(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext)
            {
                (void)InitOnce;
                (void)Parameter;
                (void)lpContext;
                return FALSE;
            }

            int main(int argc, char *argv[]) {
                InitOnceExecuteOnce(NULL, OnceHandler, NULL, NULL);
                return 0;
            }
        "
        SAIL_HAVE_INIT_ONCE_EXECUTE_ONCE
        )