Merge pull request #968 from hqhq/cleanup_getlongbit

Cleanup GetLongBit
This commit is contained in:
Mrunal Patel 2016-08-02 09:34:53 -07:00 committed by GitHub
commit 142df3836b
1 changed files with 0 additions and 15 deletions

View File

@ -4,21 +4,6 @@ package system
/*
#include <unistd.h>
#include <limits.h>
int GetLongBit() {
#ifdef _SC_LONG_BIT
int longbits;
longbits = sysconf(_SC_LONG_BIT);
if (longbits < 0) {
longbits = (CHAR_BIT * sizeof(long));
}
return longbits;
#else
return (CHAR_BIT * sizeof(long));
#endif
}
*/
import "C"