aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-27 19:45:43 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-27 19:45:43 -0800
commite8aab9183e5830d591a1f82d746a4a17294cf250 (patch)
tree094c9bd0aff900a42c6130fb68cebf423c27175e /src
parent10f3ea0008a4563c2baa4f29954c285d2d53d7dc (diff)
Remove some unnecessary statics and a silly #define const
Diffstat (limited to 'src')
-rw-r--r--src/util.h4
-rw-r--r--src/wgetopt.cpp8
2 files changed, 2 insertions, 10 deletions
diff --git a/src/util.h b/src/util.h
index ee7142be..1afde073 100644
--- a/src/util.h
+++ b/src/util.h
@@ -13,7 +13,7 @@
Returns the larger of two ints
*/
template<typename T>
-static inline T maxi(T a, T b)
+inline T maxi(T a, T b)
{
return a>b?a:b;
}
@@ -22,7 +22,7 @@ static inline T maxi(T a, T b)
Returns the smaller of two ints
*/
template<typename T>
-static inline T mini(T a, T b)
+inline T mini(T a, T b)
{
return a<b?a:b;
}
diff --git a/src/wgetopt.cpp b/src/wgetopt.cpp
index 15deb3b1..80ffdcc9 100644
--- a/src/wgetopt.cpp
+++ b/src/wgetopt.cpp
@@ -51,14 +51,6 @@
#include "config.h"
-#if !defined (__STDC__) || !__STDC__
-/* This is a separate conditional since some stdc systems
- reject `defined (const)'. */
-#ifndef const
-#define const
-#endif
-#endif
-
#include <stdio.h>
#include <wchar.h>
#include "common.h"