diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-03-28 16:09:03 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-03-28 16:09:03 +0300 |
commit | a9c8f4489662efcf8825f6bb1a3a8b61c44e7f93 (patch) | |
tree | f3d25bb5ef4fbd17343327e02053dd640a5c1fa6 /moses/LM | |
parent | 9852a0c2ffcac0f7ad93d249f3b9ecd0c5fcf3f9 (diff) |
Modernize "C" includes in moses.
This is one of those little chores in managing a long-lived C++
project: standard C headers like stdio.h and math.h now have their own
place in the C++ standard as resp. cstdio, cmath, and so on. In this
branch the #include names are updated for the moses/ subdirectory; more
branches to follow.
C++11 adds cstdint, but to support compilation with the previous
standard, that change is left for later.
Diffstat (limited to 'moses/LM')
-rw-r--r-- | moses/LM/Ken.cpp | 2 | ||||
-rw-r--r-- | moses/LM/Remote.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/moses/LM/Ken.cpp b/moses/LM/Ken.cpp index 499886505..41cc3e04a 100644 --- a/moses/LM/Ken.cpp +++ b/moses/LM/Ken.cpp @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include <cstring> #include <iostream> #include <memory> -#include <stdlib.h> +#include <cstdlib> #include <boost/shared_ptr.hpp> #include <boost/lexical_cast.hpp> diff --git a/moses/LM/Remote.cpp b/moses/LM/Remote.cpp index 4527a52a7..af02a6617 100644 --- a/moses/LM/Remote.cpp +++ b/moses/LM/Remote.cpp @@ -1,5 +1,5 @@ -#include <stdio.h> -#include <stdlib.h> +#include <cstdio> +#include <cstdlib> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> |