OSDN Git Service

[Refactor] #37353 fd_seek(), fd_lock() 向けマクロ定義を util.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Tue, 11 Jun 2019 12:45:29 +0000 (21:45 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 11 Jun 2019 12:45:29 +0000 (21:45 +0900)
src/h-define.h
src/util.h

index 74e19a2..9954318 100644 (file)
 
 
 /*
- * Hack -- force definitions -- see fd_seek()
- */
-#ifndef SEEK_SET
-# define SEEK_SET      0
-#endif
-#ifndef SEEK_CUR
-# define SEEK_CUR      1
-#endif
-#ifndef SEEK_END
-# define SEEK_END      2
-#endif
-
-/*
- * Hack -- force definitions -- see fd_lock()  
- */
-#ifndef F_UNLCK
-# define F_UNLCK       0
-#endif
-#ifndef F_RDLCK
-# define F_RDLCK       1
-#endif
-#ifndef F_WRLCK
-# define F_WRLCK       2
-#endif
-
-
-/*
  * The constants "TRUE" and "FALSE"
  */
 
index def30fe..c506047 100644 (file)
@@ -313,6 +313,32 @@ extern  u32b _ftype;
 extern  u32b _fcreator;
 #endif
 
+/*
+ * Hack -- force definitions -- see fd_seek()
+ */
+#ifndef SEEK_SET
+# define SEEK_SET      0
+#endif
+#ifndef SEEK_CUR
+# define SEEK_CUR      1
+#endif
+#ifndef SEEK_END
+# define SEEK_END      2
+#endif
+
+ /*
+  * Hack -- force definitions -- see fd_lock()
+  */
+#ifndef F_UNLCK
+# define F_UNLCK       0
+#endif
+#ifndef F_RDLCK
+# define F_RDLCK       1
+#endif
+#ifndef F_WRLCK
+# define F_WRLCK       2
+#endif
+
 extern const char hexsym[16];
 
 extern errr path_parse(char *buf, int max, concptr file);