Code

Win32 installer: fixed Gallegan/Galician insanity by making it all Galician as it...
[inkscape.git] / src / streq.h
index daed17cf05e60982f7641e5409ecb484a18caaf9..06f78e1e5584e6c782714e5b341d652f33fbbe1b 100644 (file)
@@ -2,6 +2,7 @@
 #define INKSCAPE_STREQ_H
 
 #include <cstring>
+#include <string>
 
 /** Convenience/readability wrapper for strcmp(a,b)==0. */
 inline bool
@@ -10,6 +11,12 @@ streq(char const *a, char const *b)
     return std::strcmp(a, b) == 0;
 }
 
+struct streq_rel {
+    bool operator()(char const *a, char const *b) const
+    {
+        return (std::strcmp(a, b) == 0);
+    }
+};
 
 #endif /* !INKSCAPE_STREQ_H */