• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision4e45a1226ce3fdcc6922fee58516f479173d1066 (tree)
Time2019-06-11 21:45:29
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 fd_seek(), fd_lock() 向けマクロ定義を util.h へ移動.

Change Summary

Incremental Difference

--- a/src/h-define.h
+++ b/src/h-define.h
@@ -32,33 +32,6 @@
3232
3333
3434 /*
35- * Hack -- force definitions -- see fd_seek()
36- */
37-#ifndef SEEK_SET
38-# define SEEK_SET 0
39-#endif
40-#ifndef SEEK_CUR
41-# define SEEK_CUR 1
42-#endif
43-#ifndef SEEK_END
44-# define SEEK_END 2
45-#endif
46-
47-/*
48- * Hack -- force definitions -- see fd_lock()
49- */
50-#ifndef F_UNLCK
51-# define F_UNLCK 0
52-#endif
53-#ifndef F_RDLCK
54-# define F_RDLCK 1
55-#endif
56-#ifndef F_WRLCK
57-# define F_WRLCK 2
58-#endif
59-
60-
61-/*
6235 * The constants "TRUE" and "FALSE"
6336 */
6437
--- a/src/util.h
+++ b/src/util.h
@@ -313,6 +313,32 @@ extern u32b _ftype;
313313 extern u32b _fcreator;
314314 #endif
315315
316+/*
317+ * Hack -- force definitions -- see fd_seek()
318+ */
319+#ifndef SEEK_SET
320+# define SEEK_SET 0
321+#endif
322+#ifndef SEEK_CUR
323+# define SEEK_CUR 1
324+#endif
325+#ifndef SEEK_END
326+# define SEEK_END 2
327+#endif
328+
329+ /*
330+ * Hack -- force definitions -- see fd_lock()
331+ */
332+#ifndef F_UNLCK
333+# define F_UNLCK 0
334+#endif
335+#ifndef F_RDLCK
336+# define F_RDLCK 1
337+#endif
338+#ifndef F_WRLCK
339+# define F_WRLCK 2
340+#endif
341+
316342 extern const char hexsym[16];
317343
318344 extern errr path_parse(char *buf, int max, concptr file);
Show on old repository browser