move some errno mappings to sigar.h

This commit is contained in:
Doug MacEachern committed 2007-04-05 15:49:17 +00:00
1 parent 5ec635a1b4
commit 9d528d6d78
2 files changed
+8 -12

No files matched your search

-12
View File
@@ -114,18 +114,6 @@ static void sigar_throw_notimpl(JNIEnv *env, char *msg)
JENV->ThrowNew(env, errorClass, msg);
}
#ifdef WIN32
# define SIGAR_ENOENT ERROR_FILE_NOT_FOUND
#else
# define SIGAR_ENOENT ENOENT
#endif
#ifdef WIN32
# define SIGAR_EACCES ERROR_ACCESS_DENIED
#else
# define SIGAR_EACCES EACCES
#endif
static void sigar_throw_error(JNIEnv *env, jni_sigar_t *jsigar, int err)
{
jclass errorClass;