lib: move errno and strerror to legacy FFI
[nit.git] / lib / standard / string.nit
index 409b4ed..8db6a4e 100644 (file)
@@ -1952,9 +1952,7 @@ end
 redef class Int
 
        # Wrapper of strerror C function
-       private fun strerror_ext: NativeString is extern `{
-               return strerror(recv);
-       `}
+       private fun strerror_ext: NativeString is extern "strerror"
 
        # Returns a string describing error number
        fun strerror: String do return strerror_ext.to_s