summaryrefslogtreecommitdiff
path: root/modules/CIAO/CIDLC/Upcase.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/CIDLC/Upcase.hpp')
-rw-r--r--modules/CIAO/CIDLC/Upcase.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/CIAO/CIDLC/Upcase.hpp b/modules/CIAO/CIDLC/Upcase.hpp
new file mode 100644
index 00000000000..cf114dd8392
--- /dev/null
+++ b/modules/CIAO/CIDLC/Upcase.hpp
@@ -0,0 +1,21 @@
+// file : CIDLC/Upcase.hpp
+// author : Jeff Parsons <j.parsons@vanderbilt.edu>
+// cvs-id : $Id$
+
+#ifndef UPCASE_HPP
+#define UPCASE_HPP
+
+#include <cctype>
+
+namespace
+{
+ // On some platforms toupper can be something other than a
+ // function.
+ int
+ upcase (int c)
+ {
+ return std::toupper (c);
+ }
+}
+
+#endif // UPCASE_HPP