OSDN Git Service

[Refactor] #37353 ULTRIX のプリプロを削除 / Removed preprocessor ULTRIX
[hengband/hengband.git] / src / util.c
index 1e24481..b26f9a8 100644 (file)
@@ -210,14 +210,12 @@ void user_name(char *buf, int id)
                (void)strcpy(buf, pw->pw_name);
                buf[16] = '\0';
 
-#ifdef CAPITALIZE_USER_NAME
                /* Hack -- capitalize the user name */
 #ifdef JP
                if (!iskanji(buf[0]))
 #endif
                        if (islower(buf[0]))
                                buf[0] = toupper(buf[0]);
-#endif /* CAPITALIZE_USER_NAME */
 
                return;
        }
@@ -857,7 +855,7 @@ errr fd_chop(int fd, huge n)
        /* Verify the fd */
        if (fd < 0) return -1;
 
-#if defined(ULTRIX) || defined(NeXT)
+#if defined(NeXT)
        /* Truncate */
        ftruncate(fd, n);
 #endif
@@ -3111,7 +3109,7 @@ void prt(concptr str, TERM_LEN row, TERM_LEN col)
  * This function will correctly handle any width up to the maximum legal
  * value of 256, though it works best for a standard 80 character width.
  */
-void c_roff(byte a, concptr str)
+void c_roff(TERM_COLOR a, concptr str)
 {
        int x, y;
 
@@ -4919,8 +4917,6 @@ void tag_sort(tag_type elements[], int number)
        quicksort(elements, 0, number - 1);
 }
 
-#ifdef SUPPORT_GAMMA
-
 /* Table of gamma values */
 byte gamma_table[256];
 
@@ -5014,8 +5010,6 @@ void build_gamma_table(int gamma)
        }
 }
 
-#endif /* SUPPORT_GAMMA */
-
 
 /*
  * Add a series of keypresses to the "queue".