X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Futil.hh;h=22d45fba1d5d9b4fe8817089af28a5c1e9143ebc;hb=a91a6f97daeb058f346246081e1c83a788787f9b;hp=2325ebf0b813ff0b38ae5a0bceb48caac82bd5c9;hpb=e8f5cf2940667a60698d28fe0cae208792357676;p=chaz%2Fopenbox diff --git a/otk/util.hh b/otk/util.hh index 2325ebf0..22d45fba 100644 --- a/otk/util.hh +++ b/otk/util.hh @@ -1,38 +1,21 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef _BLACKBOX_UTIL_HH -#define _BLACKBOX_UTIL_HH +#ifndef __util_hh +#define __util_hh extern "C" { #include #include - -#ifdef TIME_WITH_SYS_TIME -# include -# include -#else // !TIME_WITH_SYS_TIME -# ifdef HAVE_SYS_TIME_H -# include -# else // !HAVE_SYS_TIME_H -# include -# endif // HAVE_SYS_TIME_H -#endif // TIME_WITH_SYS_TIME } - #include #include namespace otk { -/* XXX: this needs autoconf help */ -const unsigned int BSENTINEL = 65535; - std::string expandTilde(const std::string& s); void bexec(const std::string& command, const std::string& displaystring); -std::string textPropertyToString(Display *display, XTextProperty& text_prop); - std::string itostring(unsigned long i); std::string itostring(long i); inline std::string itostring(unsigned int i) @@ -46,4 +29,4 @@ std::string basename(const std::string& path); } -#endif +#endif // __util_hh