summary refs log tree commit diff
diff options
context:
space:
mode:
authorLain Iwakura <lain@lainmail.xyz>2026-01-04 14:17:04 +0300
committerLain Iwakura <lain@lainmail.xyz>2026-01-04 14:17:04 +0300
commita34da2bbaeeefbd1fa40f42eef7564a495290912 (patch)
treefc8285fd80a3086b9e30c827fb71d7c4e9e8b3ba
parentfeat(linux): some patches (diff)
downloadplay-a34da2bbaeeefbd1fa40f42eef7564a495290912.tar.gz
play-a34da2bbaeeefbd1fa40f42eef7564a495290912.zip
feat(linux): some patches
-rw-r--r--2048.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/2048.c b/2048.c
index 9209597..918654c 100644
--- a/2048.c
+++ b/2048.c
@@ -23,16 +23,10 @@
 typedef unsigned uint;
 
 #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
-#ifndef _DEFAULT_SOURCE
-#define _DEFAULT_SOURCE
-#endif
-#include <features.h>
-#if !(defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 36))
 static inline uint arc4random_uniform(uint upper_bound) {
 	return rand() % upper_bound;
 }
 #endif
-#endif
 
 static uint score;
 static uint grid[4][4];