Author: Vignesh R <vignesh.r@timesys.com>
Date: Tue, 13 Oct 2020 13:24:14 -0400

error:
pcmanfm-desktop.o: In function `on_snap_to_grid':
pcmanfm-0.9.10/src/desktop.c:2144: undefined reference to `_round'
pcmanfm-0.9.10/src/desktop.c:2145: undefined reference to `_round'
collect2: error: ld returned 1 exit status

---
 src/desktop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/desktop.c b/src/desktop.c
index 5177257..c552928 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -2113,7 +2113,7 @@ static void on_fix_pos(GtkToggleAction* act, gpointer user_data)
 }
 
 /* round() is only available in C99. Don't use it now for portability. */
-inline double _round(double x)
+static inline double _round(double x)
 {
     return (x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5);
 }
-- 
2.17.1

