Soft'N'Design Software
/
projects
/
fm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f795d0
)
avoid unused code for linux
author
Laurent Mazet
<mazet@softndesign.org>
Thu, 23 Jan 2025 22:13:16 +0000
(23:13 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Thu, 23 Jan 2025 22:13:16 +0000
(23:13 +0100)
function.c
patch
|
blob
|
blame
|
history
diff --git
a/function.c
b/function.c
index a8f9c4eb2bfbf9abd7edfca5465f91f1f7c841a9..8a7ee41a10e2308fd80432d81637cc1596472a5a 100644
(file)
--- a/
function.c
+++ b/
function.c
@@
-104,6
+104,7
@@
list_t *_addelement (list_t *list, char *dirname, char *filename, type_t type)
char *name = newfilename (dirname, filename);
STAT (name, &sb);
+#ifdef WIN32
if (type == type_unkn_e) {
switch (sb.st_mode & S_IFMT) {
case S_IFBLK:
@@
-133,6
+134,7
@@
list_t *_addelement (list_t *list, char *dirname, char *filename, type_t type)
#endif
}
}
+#endif
size_t size = 0;
if (type == type_reg_e) {