Microsoft Visual C++ 2005 Redistributable Package (x64)
Microsoft Visual C++ 2005 Redistributable Package (x86)
Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
| // gcc test.c `pkg-config --cflags --libs gtk+-3.0 gdk-3.0` -lX11 && ./a.out | |
| #include <X11/Xlib.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <gtk/gtk.h> | |
| #include <gdk/gdkx.h> | |
| static void my_gtk_realize(GtkWidget* widget, gpointer user) |
| #include <windows.h> | |
| extern "C" | |
| { | |
| #pragma section(".CRT$XIA",long,read) | |
| #pragma section(".CRT$XIZ",long,read) | |
| #pragma section(".CRT$XCA",long,read) | |
| #pragma section(".CRT$XCZ",long,read) | |
| #pragma section(".CRT$XPA",long,read) | |
| #pragma section(".CRT$XPZ",long,read) |
| @echo off | |
| setlocal EnableDelayedExpansion | |
| set BUILD_CACHE=%~dp0\_build_cache.cmd | |
| if exist "!BUILD_CACHE!" ( | |
| rem cache file exists, so call it to set env variables very fast | |
| call "!BUILD_CACHE!" | |
| ) else ( | |
| if not exist "%VS2019INSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" ( |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <assert.h> // for potential error handling, change to real errors in your code | |
| int main() | |
| { | |
| HANDLE pipe = CreateNamedPipeW( | |
| L"\\\\.\\pipe\\lolcat", | |
| PIPE_ACCESS_INBOUND | FILE_FLAG_FIRST_PIPE_INSTANCE | FILE_FLAG_OVERLAPPED, | |
| PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS, |
| #define COBJMACROS | |
| #define INITGUID | |
| #include <intrin.h> | |
| #include <windows.h> | |
| #include <d3d11.h> | |
| #include <gl/GL.h> | |
| #include "glext.h" // https://www.opengl.org/registry/api/GL/glext.h | |
| #include "wglext.h" // https://www.opengl.org/registry/api/GL/wglext.h |
| /* ======================================================================== | |
| $File: tools/ctime/ctime.c $ | |
| $Date: 2016/05/08 04:16:55PM $ | |
| $Revision: 7 $ | |
| $Creator: Casey Muratori $ | |
| $Notice: | |
| The author of this software MAKES NO WARRANTY as to the RELIABILITY, | |
| SUITABILITY, or USABILITY of this software. USE IT AT YOUR OWN RISK. |
| #include <stdio.h> | |
| #define STR2(x) #x | |
| #define STR(x) STR2(x) | |
| #ifdef _WIN32 | |
| #define INCBIN_SECTION ".rdata, \"dr\"" | |
| #else | |
| #define INCBIN_SECTION ".rodata" | |
| #endif |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <xmmintrin.h> // SSE | |
| #include <immintrin.h> // AVX | |
| #ifdef _WIN32 | |
| #include <intrin.h> // for __movsb, __movsd, __movsq |
| extern "C" | |
| { | |
| int _fltused; | |
| #ifdef _M_IX86 // following functions are needed only for 32-bit architecture | |
| __declspec(naked) void _ftol2() | |
| { | |
| __asm | |
| { |