diff options
author | Marc Lehmann <schmorpforge@schmorp.de> | 2012-02-26 07:17:50 +0400 |
---|---|---|
committer | Marc Lehmann <schmorpforge@schmorp.de> | 2012-02-26 07:17:50 +0400 |
commit | 9b0d18a73410377f51ffb01661dae98850a1e66a (patch) | |
tree | f01e029c3db05fe9dd2e0b1615fab8c87aac1b41 | |
parent | e60bd889308c9c2fb7335731acf631c94b788722 (diff) |
*** empty log message ***
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lzfP.h | 2 | ||||
-rw-r--r-- | lzf_c.c | 11 |
3 files changed, 11 insertions, 4 deletions
@@ -10,6 +10,8 @@ TODO: allow size-optimised binaries by avoiding unrolling always < 64kb). - use _WIN32, not WIN32, when testing for windows (fails with bcc), patch by Tamas Tevesz. + - try to port to win64+gcc, which is non-posix but has not _int64 + (reported by Maciej Adamczyk). 3.6 Mon Feb 7 17:37:31 CET 2011 - fixed hash calculation in C♯ version (Tiago Freitas Leal). @@ -159,7 +159,7 @@ using namespace std; #endif #ifndef LZF_USE_OFFSETS -# if defined (WIN32) || defined (_WIN32) +# ifdef _WIN32 # define LZF_USE_OFFSETS defined(_M_X64) # else # if __cplusplus > 199711L @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de> + * Copyright (c) 2000-2010,2012 Marc Alexander Lehmann <schmorp@schmorp.de> * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: @@ -119,8 +119,13 @@ lzf_compress (const void *const in_data, unsigned int in_len, * and fails to support both assumptions is windows 64 bit, we make a * special workaround for it. */ -#if defined (WIN32) && defined (_M_X64) - unsigned _int64 off; /* workaround for missing POSIX compliance */ +#if defined (_WIN32) && defined (_M_X64) + /* workaround for missing POSIX compliance */ + #if #if __GNUC__ + unsigned long long off; + #else + unsigned __int64 off; + #endif #else unsigned long off; #endif |