This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <time.h> | |
#include <maxminddb.h> | |
static MMDB_s g_mmdb = { 0 }; | |
#define MAX_wchar_COUNTRY_NAME 50 | |
typedef wchar_t mmdb_wname [MAX_wchar_COUNTRY_NAME]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Gnu Makefile for MicroPython (MSVC or clang-cl). | |
# | |
# This Makefile MUST be placed in the root-directory of your MicroPython installation. | |
# | |
# By G. Vanem <gvanem@yahoo.no> 2020. | |
# | |
THIS_FILE = Makefile.Windows | |
TODAY = $(shell date +%d-%B-%Y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Test the new ASAN feature of MSVC (ripped from clang presumably). | |
* | |
* Ref: | |
* https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/ | |
*/ | |
#include <stdlib.h> | |
/* | |
* Ref 'https://github.com/google/sanitizers/wiki/AddressSanitizerFlags' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/libfilezilla/lib/util.cpp 2020-07-01 12:30:29 | |
+++ b/libfilezilla/lib/util.cpp 2020-07-04 15:32:17 | |
@@ -125,8 +125,22 @@ | |
uint64_t bitscan(uint64_t v) | |
{ | |
-#if !FZ_WINDOWS || defined(__MINGW32__) || defined(__MINGW64__) | |
+#if !FZ_WINDOWS || defined(__MINGW32__) || defined(__MINGW64__) || defined(__clang__) | |
return __builtin_ctzll(v); | |
+#elif defined(_M_IX86) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# MPIR Makefile for MinGW + MSVC + clang-cl. | |
# | |
# by G. Vanem <gvanem@yahoo.no> 2004-2020. | |
# | |
comma := , | |
DATE = $(shell date +%d-%B-%Y) | |
VER_MAJOR := $(shell grep -m1 __GNU_MP_VERSION gmp-h.in | cut -d' ' -f3) | |
VER_MINOR := $(shell grep -m1 __GNU_MP_VERSION_MINOR gmp-h.in | cut -d' ' -f3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GNU-Makefile for Python 3.x. | |
# | |
# Targeting Windows 32 + 64-bits using MSVC-201x or clang-cl. | |
# | |
# By G. Vanem <gvanem@yahoo.no> 2015 - 2022. | |
# | |
THIS_FILE = Makefile.Windows | |
DATE := $(shell date +%d-%B-%Y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GNU-makefile for Doxygen (MSVC / clang-cl, 32-bit) | |
# | |
# By G. Vanem <gvanem@yahoo.no> 2019. | |
# | |
THIS_FILE := Makefile.MSVC | |
DEP_FILE := .depend.MSVC | |
DATE := $(shell date +%d-%B-%Y) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************************************************** | |
* _ _ ____ _ | |
* Project ___| | | | _ \| | | |
* / __| | | | |_) | | | |
* | (__| |_| | _ <| |___ | |
* \___|\___/|_| \_\_____| | |
* | |
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. | |
* | |
* This software is licensed as described in the file COPYING, which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/EveryThing-SDK/src/Everything.c 2017-09-02 00:00:44 | |
+++ b/EveryThing-SDK/src/Everything.c 2019-01-18 06:30:34 | |
@@ -28,14 +28,80 @@ | |
// this project builds the dll (visual studio will also build the lib for us) | |
// we declare all exported calls to __stdcall, so theres no need to set the default calling standard. | |
-// disable warnings | |
-#pragma warning(disable : 4996) // deprecation | |
+/* | |
+ * With changes by G. Vanem <2017> for the envtool program. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GNU Makefile for RTL_433 (MinGW / MSVC / clang-cl). | |
# | |
# By G. Vanem <gvanem@yahoo.no> 2017. | |
# | |
# Ref: https://github.com/merbanan/rtl_433 | |
# | |
# Choose your weapons: | |
# | |
# Set 'USE_STATIC_RTLSDR=1' to link with a static rtlsdr.lib. |