diff options
| author | Oscar Fuentes | 2014-11-27 04:03:07 +0100 |
|---|---|---|
| committer | Oscar Fuentes | 2014-11-27 04:03:07 +0100 |
| commit | 1ed5c2d9bcc99c92cff1f6382e4c39c70a126f62 (patch) | |
| tree | c78e475e32503ad08003a7049503b5cf97b5d990 /src | |
| parent | ba4502fe1465f7803beca3ae187e41f0b25bef10 (diff) | |
| download | emacs-1ed5c2d9bcc99c92cff1f6382e4c39c70a126f62.tar.gz emacs-1ed5c2d9bcc99c92cff1f6382e4c39c70a126f62.zip | |
Replace uses of _W64 with MINGW_W64
This is the `master' branch follow-up to the change made previously on
the emacs-24 branch (81e0cca7bbc99dbfda898a8aaab740ae121cf045).
* src/w32.c: Use MINGW_W64 instead of _W64.
* src/w32heap.c: Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32.c | 2 | ||||
| -rw-r--r-- | src/w32heap.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e6bbeb8b864..dcb4666e106 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-11-27 Oscar Fuentes <ofv@wanadoo.es> | ||
| 2 | |||
| 3 | * src/w32.c: Use MINGW_W64 instead of _W64. | ||
| 4 | |||
| 5 | * src/w32heap.c: Likewise. | ||
| 6 | |||
| 1 | 2014-11-17 Oscar Fuentes <ofv@wanadoo.es> | 7 | 2014-11-17 Oscar Fuentes <ofv@wanadoo.es> |
| 2 | 8 | ||
| 3 | * src/w32.c: Use MINGW_W64 instead of _W64. | 9 | * src/w32.c: Use MINGW_W64 instead of _W64. |
| @@ -72,7 +72,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 72 | #include <pwd.h> | 72 | #include <pwd.h> |
| 73 | #include <grp.h> | 73 | #include <grp.h> |
| 74 | 74 | ||
| 75 | /* MinGW64 (_W64) defines these in its _mingw.h. */ | 75 | /* MinGW64 defines these in its _mingw.h. */ |
| 76 | #ifndef _ANONYMOUS_UNION | 76 | #ifndef _ANONYMOUS_UNION |
| 77 | # define _ANONYMOUS_UNION | 77 | # define _ANONYMOUS_UNION |
| 78 | #endif | 78 | #endif |
diff --git a/src/w32heap.c b/src/w32heap.c index c431b87e0c2..2a766419b25 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -214,7 +214,7 @@ dumped_data_commit (PVOID Base, PVOID *CommitAddress, PSIZE_T CommitSize) | |||
| 214 | 214 | ||
| 215 | /* We want to turn on Low Fragmentation Heap for XP and older systems. | 215 | /* We want to turn on Low Fragmentation Heap for XP and older systems. |
| 216 | MinGW32 lacks those definitions. */ | 216 | MinGW32 lacks those definitions. */ |
| 217 | #ifndef _W64 | 217 | #ifndef MINGW_W64 |
| 218 | typedef enum _HEAP_INFORMATION_CLASS { | 218 | typedef enum _HEAP_INFORMATION_CLASS { |
| 219 | HeapCompatibilityInformation | 219 | HeapCompatibilityInformation |
| 220 | } HEAP_INFORMATION_CLASS; | 220 | } HEAP_INFORMATION_CLASS; |
| @@ -244,7 +244,7 @@ init_heap (void) | |||
| 244 | /* Create the private heap. */ | 244 | /* Create the private heap. */ |
| 245 | heap = HeapCreate (0, 0, 0); | 245 | heap = HeapCreate (0, 0, 0); |
| 246 | 246 | ||
| 247 | #ifndef _W64 | 247 | #ifndef MINGW_W64 |
| 248 | /* Set the low-fragmentation heap for OS before Vista. */ | 248 | /* Set the low-fragmentation heap for OS before Vista. */ |
| 249 | HMODULE hm_kernel32dll = LoadLibrary ("kernel32.dll"); | 249 | HMODULE hm_kernel32dll = LoadLibrary ("kernel32.dll"); |
| 250 | HeapSetInformation_Proc s_pfn_Heap_Set_Information = (HeapSetInformation_Proc) GetProcAddress (hm_kernel32dll, "HeapSetInformation"); | 250 | HeapSetInformation_Proc s_pfn_Heap_Set_Information = (HeapSetInformation_Proc) GetProcAddress (hm_kernel32dll, "HeapSetInformation"); |