search for: _win32

Displaying 20 results from an estimated 175 matches for "_win32".

Did you mean: win32
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
_WIN32 is always defined by the compiler automatically when targeting that platform, while WIN32 only is defined automatically in some configurations, and e.g. in MSVC only ever is defined in project files (if at all). Some other checks in the codebase already check for both WIN32 and _WIN32; those are l...
2012 Mar 16
1
[PATCH/cygwin]: Explicitely undefine _WIN32
...'ve just trieed to build OpenSSH on Cygwin with Kerberos support enabled, and while doing that I stumbled over a problem: The openbsd-compat/bsd-cygwin_util.h header include a Windows header, and depending on which Win32 header files are included (Mingw32/Mingw64) that can result in a `#define _WIN32'. This in turn can break linking against some packages. In my case it's GSSAPI from the heimdal package. The header file /usr/include/gssapi/gssapi.h contains code like this: #if defined(_WIN32) #define GSSAPI_LIB_FUNCTION __declspec(dllimport) #define GSSAPI_LIB_CALL __stdcall...
2018 Apr 02
1
Replacing LLVM_ON_WIN32 with just _WIN32
Hi, LLVM_ON_WIN32 is true exactly when the compiler-set _WIN32 is set. I'd like to just replace LLVM_ON_WIN32 with just _WIN32 everywhere -- _WIN32 doesn't require a custom header file, and we already are inconsistent about which of the two versions we should use in the codebase. Let me know if you see any...
2000 Dec 15
2
Ports
...ndex: lib/os.h =================================================================== RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v retrieving revision 1.17 diff -u -r1.17 os.h --- lib/os.h 2000/12/13 18:12:34 1.17 +++ lib/os.h 2000/12/15 09:49:16 @@ -29,7 +29,7 @@ #endif #ifndef __GNUC__ -#ifdef _WIN32 +#if defined(_WIN32) || defined(__WATCOMC__) # include <malloc.h> # define rint(x) (floor((x)+0.5)) #endif @@ -116,7 +116,7 @@ typedef int vorbis_fpu_control; -#ifdef _WIN32 +#if defined(_WIN32) || defined(__WATCOMC__) static __inline int vorbis_ftoi(double f){ int i;...
2014 Feb 13
3
Libguestfs (1.22.6) driver/changes for mingw/win32
Hi, I attached the changes I made to a vanilla libguestfs-1.22.6 in order to make it work in mingw/win32. Added is also the patch required to make QEMU compatible (add a command to QMP that lists the supported devices (the regilat way you do it print it to stderr, which is difficult to redirect in win32)). This is done on behalf of Intel Corp. Thanks, Or (oberon in irc)
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
_WIN32, WIN32, WIN64, and _WIN64 are the wrong definitions to be gating this on in the first place. They aren't at all meant to be x86/x86-64 specific. At best, they're 32-bit/64-bit specific, but that's not the intended use in the code. The correct definitions are _M_IX86 and _M_X64, as Marti...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...p;& !defined(_M_ARM) #include <xmmintrin.h> __inline long int float2int(float value) { return _mm_cvtss_si32(_mm_load_ss(&value)); } -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32)) +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32)) && !defined(_M_ARM) #include <math.h> /* Win32 doesn't seem to have these functions. -- 2.1.1
2013 Mar 17
3
Patch to add Unicode filename support for win32 flac
...for open() > calls: > > int _flac_open(....){ #if win32 ... #else if os2 ... #else ... > [generic call to open() without hacks] #endif } > > All those ifdefs will at least be confined rather than spread out > through the code. I did it plibc-style: in compat.h: #if defined(_WIN32) #define FOPEN grabbag__fopen_utf8_wrapper #else #define FOPEN fopen #endif in grabbag: #if defined(_WIN32) <implement grabbag__fopen_utf8_wrapper, which has the same signature as fopen, but does utf8->utf16 conversion internally, then calls wfopen> #endif and replace "fopen" w...
2014 Apr 09
1
[PATCH] for include/share/compat.h
This file has the following code: #ifdef _WIN32 /* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */ [...] #define flac_stat _stat64_utf8 #else [...] #ifdef _WIN32 #define flac_stat _stat64 #else #define flac_stat stat #endif #endif The second "#ifdef _WIN32" doesn't make much sense. --------...
2004 Aug 06
0
Submission: Patch to libshout/sock.c for MacOSX
...e * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifdef HAVE_CONFIG_H #ifdef _WIN32 #include <win32config.h> #else #include <config.h> #endif #endif #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <sys/time.h> // - SKoT #include <sys/types.h> // #include <sys/poll.h> // - SKoT #include <ctype.h> #ifdef...
2012 Jan 07
3
[LLVMdev] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
.../clear_cache_test.c =================================================================== --- test/Unit/clear_cache_test.c (revision 147731) +++ test/Unit/clear_cache_test.c (working copy) @@ -11,12 +11,20 @@ #include <stdio.h> #include <string.h> #include <stdint.h> +#if defined(_WIN32) +#include <windows.h> +void __clear_cache(void* start, void* end) +{ + if( !FlushInstructionCache(GetCurrentProcess(), start, end-start) ) + exit(1); +} +#else #include <sys/mman.h> +extern void __clear_cache(void* start, void* end); +#endif -extern void __clear_cache(...
2001 Jan 29
1
Mac OS X/Darwin patch for libvorbis
...RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v retrieving revision 1.19 diff -u -p -r1.19 os.h --- lib/os.h 2000/12/21 21:04:40 1.19 +++ lib/os.h 2001/01/30 01:37:28 @@ -24,19 +24,31 @@ #ifndef _V_IFDEFJAIL_H_ #define _V_IFDEFJAIL_H_ +#ifdef __GNUC__ +#define STIN static inline +#elif _WIN32 +#define STIN static __inline +#else +#define STIN static +#endif + #ifndef M_PI #define M_PI (3.1415926536f) #endif -#ifndef __GNUC__ + #ifdef _WIN32 # include <malloc.h> # define rint(x) (floor((x)+0.5f)) +# define NO_FLOAT_MATH_LIB +# define FAST_HYPOT(a, b) sqrt((a)*(a) + (...
2013 Mar 18
0
flac-dev Digest, Vol 100, Issue 42
...c-dev] Patch to add Unicode filename support for win32 > flac > On 3/17/2013 23:01, LRN wrote: > >> All those ifdefs will at least be confined rather than spread out > >> through the code. > > I did it plibc-style: > > > > in compat.h: > > #if defined(_WIN32) > > #define FOPEN grabbag__fopen_utf8_wrapper > > #else > > #define FOPEN fopen > > #endif > > > > in grabbag: > > #if defined(_WIN32) > > <implement grabbag__fopen_utf8_wrapper, which has the same signature > > as fopen, but does utf8->u...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
Yeah that's the one. On Nov 6, 2014 1:23 PM, "Tristan Matthews" <le.businessman at gmail.com> wrote: > On Thu, Nov 6, 2014 at 4:20 PM, Cameron Gutman <aicommander at gmail.com> > wrote: > > _WIN32, WIN32, WIN64, and _WIN64 are the wrong definitions to be gating > this > > on in the first place. They aren't at all meant to be x86/x86-64 > specific. > > At best, they're 32-bit/64-bit specific, but that's not the intended use > in > > the code. The correct...
2016 Jan 09
3
Lets do a 1.3.2 release
...d external symbol utime_utf8 metadata_iterators.obj : error LNK2001: unresolved external symbol _stat64_utf8 metadata_iterators.obj : error LNK2001: unresolved external symbol chmod_utf8 metadata_iterators.obj : error LNK2001: unresolved external symbol rename_utf8 So currently libFLAC on _WIN32 does depend on win_utf8_io. BTW, share/compat.h includes share/win_utf8_io.h (if _WIN32 is defined), and is included into many libFLAC source files. As a result, some libFLAC source files unnecessarily include share/win_utf8_io.h, windows.h, etc.
2000 Apr 17
2
segfault cause found
...u_int32_t, and int16_t), the library and examples build. A quick test with the examples produced acceptable output. If anyone is interested, I modified decoder_example.c to write to a WAV file instead of just a raw sample. To get rid of the segfaults, in os.h I replaced #ifndef alloca #ifdef _WIN32 #define alloca(x) (_alloca(x)) #endif #endif with #ifndef alloca #if defined(_WIN32) && !defined(__GNUC__) #define alloca(x) (_alloca(x)) #endif #endif regards, Andy ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com --- >8 -...
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport attributes work with mingw/mingw-w64 and others: - changes _declspec keyword to __declspec: the former may not be defined by some toolchains. - changes the _MSC_VER condition to universally _WIN32: MSVC, as well as GCC supports this. Attached patch: declspec.diff Regards. -- O.S. -------------- next part -------------- diff --git a/include/FLAC/export.h b/include/FLAC/export.h index 2232b41..4b2418f 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -59,11 +59,11 @@ #if...
2013 Jun 25
0
[LLVMdev] [PATCH] Windows implementation of enable_execute_stack
...============================================== >> > --- lib/enable_execute_stack.c (revision 182667) >> > +++ lib/enable_execute_stack.c (working copy) >> > @@ -10,7 +10,11 @@ >> > >> > #include "int_lib.h" >> > >> > +#ifndef _WIN32 >> > #include <sys/mman.h> >> > +#else >> > +#include <windows.h> >> > +#endif >> > >> > /* #include "config.h" >> > * FIXME: CMake - include when cmake system is ready. >> > @@ -38,7 +42,7 @@ >>...
2008 Jan 11
1
Patch for OS/2 STDIN/STDOUT
...make in/output on STDIN/STDOUT work on OS/2 this small patch is needed: ---cut--- diff -ruN o:src/speexdec.c src/speexdec.c --- o:src/speexdec.c 2007-12-08 05:01:08.000000000 +0100 +++ src/speexdec.c 2008-01-12 00:48:00.000000000 +0100 @@ -231,6 +231,8 @@ { #if defined WIN32 || defined _WIN32 _setmode(_fileno(stdout), _O_BINARY); +#elif defined OS2 + _fsetmode(stdout,"b"); #endif fout=stdout; } diff -ruN o:src/speexenc.c src/speexenc.c --- o:src/speexenc.c 2007-12-08 05:01:08.000000000 +0100 +++ src/speexenc.c 2008-01-12 00:47:06.0000000...
2013 Mar 17
1
Patch to add Unicode filename support for win32 flac
JonY wrote: > On 3/17/2013 23:01, LRN wrote: > >> All those ifdefs will at least be confined rather than spread out > >> through the code. > > I did it plibc-style: > > > > in compat.h: > > #if defined(_WIN32) > > #define FOPEN grabbag__fopen_utf8_wrapper > > #else > > #define FOPEN fopen > > #endif > > > > in grabbag: > > #if defined(_WIN32) > > <implement grabbag__fopen_utf8_wrapper, which has the same signature > > as fopen, but does utf8->...