OSDN Git Service

[Refactor] #37353 Finished supporting CodeWarrior MetroWerks compiler
authorHourier <hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 15:20:57 +0000 (00:20 +0900)
committerHourier <hourier@users.sourceforge.jp>
Fri, 14 Feb 2020 15:20:57 +0000 (00:20 +0900)
src/h-system.h
src/main-win.c

index af42b75..04e43fd 100644 (file)
@@ -53,9 +53,7 @@
 # endif
 #endif
 
-#if !defined(__MWERKS__)
-# include <fcntl.h>
-#endif
+#include <fcntl.h>
 
 #ifdef SET_UID
 
index e0a1c17..76e67b0 100644 (file)
@@ -3971,14 +3971,7 @@ static bool process_keydown(WPARAM wParam, LPARAM lParam)
 /*!
  * todo WNDCLASSに影響があるのでplayer_type*の追加は保留
  */
-#ifdef __MWERKS__
-LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam);
-LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam)
-#else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
-#endif /* __MWERKS__ */
 {
        PAINTSTRUCT ps;
        HDC hdc;
@@ -4329,15 +4322,8 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
 /*!
  * todo WNDCLASSに影響があるのでplayer_type*の追加は保留
  */
-#ifdef __MWERKS__
-LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam);
-LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam)
-#else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
        WPARAM wParam, LPARAM lParam)
-#endif /* __MWERKS__ */
 {
        term_data *td;
        PAINTSTRUCT ps;
@@ -4461,15 +4447,8 @@ LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
 
 #define MOUSE_SENS 40
 
-#ifdef __MWERKS__
-LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam);
-LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
-       WPARAM wParam, LPARAM lParam)
-#else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
        WPARAM wParam, LPARAM lParam)
-#endif /* __MWERKS__ */
 {
        static int iMouse = 0;
        static WORD xMouse = 0;