-#else
-struct lyx {
- ///
- static char * getcwd(char * buffer, size_t size);
- ///
- static int chdir(char const * name);
- /// generates a checksum
- static unsigned long sum(char const * file);
- /// returns a date string (not used currently)
- static char * date();
- /// returns the name of the user (not used currently)
- static string getUserName();
- ///
- static int kill(long int pid, int sig);
- ///
- static void abort();
-};
-#endif // CXX_WORKING_NAMESPACES
-#endif
+
+/// round \p x to nearest integer
+inline int iround(double x)
+{
+ return static_cast<int>(round(x));
+}
+
+} // namespace support
+} // namespace lyx
+
+#endif /* LYX_LIB_H */