Skip to content

Commit a820cf6

Browse files
author
Alex Smith
committed
Use the capitalisation for header files that cross-compilers want
Microsoft has a recommended capitalisation, but Windows doens't actually care (in any common configuration). Some cross-compilers work on case-sensitive OSes without case munging, though, and typically assume all-lowercase. Patch by Vincent Ho.
1 parent e0e717c commit a820cf6

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

libnethack/dat/history

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NetHack History file for release 4.3.0-beta3
2-
This file was last updated by Alex Smith, 2015-04-01
2+
This file was last updated by Alex Smith, 2017-09-01
33

44
Behold, mortal, the origins of NetHack...
55

@@ -270,8 +270,7 @@ The NetHack 4 distribution also contains contributions from:
270270
Edoardo Spadolini Nathan Eady Tim Visher
271271
Eric S. Raymond Nephi Trevor Cook
272272
Fredrik Ljungdahl Pasi Kallinnen Tung Nguyen
273-
GreyKnight Patric Müller Wan-ichi
274-
Grunt Paul Pliska Zmy
275-
Haruko Numata Paula Breton Zsbán Ambrus
276-
Hojita Discordia quuxplusone
277-
273+
GreyKnight Patric Müller Vincent Ho
274+
Grunt Paul Pliska Wan-ichi
275+
Haruko Numata Paula Breton Zmy
276+
Hojita Discordia quuxplusone Zsbán Ambrus

libnethack/src/files.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2-
/* Last modified by Alex Smith, 2015-07-11 */
2+
/* Last modified by Alex Smith, 2017-09-01 */
33
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
44
/* NetHack may be freely redistributed. See license for details. */
55

66
#if defined(AIMAKE_BUILDOS_MSWin32)
77
# define WIN32_LEAN_AND_MEAN
8-
# include <Windows.h> /* must be before compilers.h */
8+
# include <windows.h> /* must be before compilers.h */
99

1010
# if !defined(S_IRUSR)
1111
# define S_IRUSR _S_IREAD

libnethack_common/include/netconnect.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2-
/* Last modified by Alex Smith, 2014-10-05 */
2+
/* Last modified by Alex Smith, 2017-09-01 */
33
/* Copyright (c) Daniel Thaler, 2012. */
44
/* Copyright (c) 2014 Alex Smith. */
55
/* This network connection library may be freely redistributed under the terms of
@@ -30,9 +30,9 @@
3030
# include <sys/select.h>
3131
# include <sys/time.h>
3232
# else
33-
# include <Winsock2.h>
34-
# include <Ws2def.h>
35-
# include <Ws2tcpip.h>
33+
# include <winsock2.h>
34+
# include <ws2def.h>
35+
# include <ws2tcpip.h>
3636

3737
# define snprintf(buf, len, fmt, ...) \
3838
_snprintf_s(buf, len, len-1, fmt, __VA_ARGS__)

libuncursed/src/plugins/sdl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2-
/* Last modified by Alex Smith, 2015-02-28 */
2+
/* Last modified by Alex Smith, 2017-09-01 */
33
/* Copyright (c) 2013 Alex Smith. */
44
/* The 'uncursed' rendering library may be distributed under either of the
55
* following licenses:
@@ -30,8 +30,8 @@
3030
#include "uncursed_sdl.h"
3131

3232
#ifdef AIMAKE_BUILDOS_MSWin32
33-
# include <Winsock2.h>
34-
# include <Ws2def.h>
33+
# include <winsock2.h>
34+
# include <ws2def.h>
3535
#else
3636
# include <sys/select.h>
3737
#endif

0 commit comments

Comments
 (0)