]> git.donarmstrong.com Git - bamtools.git/commitdiff
removed DOS line endings
authormikaels <mikaels@9efb377e-2e27-44b9-b91a-ec4abb80ed8b>
Sat, 11 Apr 2009 01:25:31 +0000 (01:25 +0000)
committermikaels <mikaels@9efb377e-2e27-44b9-b91a-ec4abb80ed8b>
Sat, 11 Apr 2009 01:25:31 +0000 (01:25 +0000)
git-svn-id: svn+ssh://gene.bc.edu/home/subversion/Derek/BamTools/trunk@9 9efb377e-2e27-44b9-b91a-ec4abb80ed8b

bgzf.c
bgzf.h

diff --git a/bgzf.c b/bgzf.c
index 688f444c6435ae6f341fecfcf0ad0aefd55f9636..6481ee3d9dcfaf1fbd5754f5be821e4a80540336 100644 (file)
--- a/bgzf.c
+++ b/bgzf.c
 #include <sys/stat.h>
 #include "bgzf.h"
 
-#ifdef WIN32\r
-\r
-#else\r
-#include <unistd.h>\r
+#ifdef WIN32
+
+#else
+#include <unistd.h>
 extern off_t ftello(FILE *stream);
-extern int fseeko(FILE *stream, off_t offset, int whence);\r
+extern int fseeko(FILE *stream, off_t offset, int whence);
 #endif
 
 typedef int8_t byte;
diff --git a/bgzf.h b/bgzf.h
index 2def42548483f1e374f1f9f01756c6ca20c51126..080db1d0dce1155c5c4e42175c0f12712026fc35 100644 (file)
--- a/bgzf.h
+++ b/bgzf.h
 #include <stdio.h>
 #include "zlib.h"
 
-#ifdef WIN32\r
-#include <io.h>\r
-\r
-typedef char                 int8_t;\r
-typedef unsigned char       uint8_t;\r
-typedef short               int16_t;\r
-typedef unsigned short     uint16_t;\r
-typedef int                 int32_t;\r
-typedef unsigned int       uint32_t;\r
-typedef long long           int64_t;\r
-typedef unsigned long long uint64_t;\r
-\r
+#ifdef WIN32
+#include <io.h>
+
+typedef char                 int8_t;
+typedef unsigned char       uint8_t;
+typedef short               int16_t;
+typedef unsigned short     uint16_t;
+typedef int                 int32_t;
+typedef unsigned int       uint32_t;
+typedef long long           int64_t;
+typedef unsigned long long uint64_t;
+
 #define ftello(a)     _ftelli64(a)
 #define fseeko(a,b,c) _fseeki64(a,b,c)
-#define strcasecmp    _stricmp\r
-#define open          _open\r
-#define fdopen        _fdopen\r
-#else\r
-#include <stdint.h>\r
-#include <stdbool.h>\r
+#define strcasecmp    _stricmp
+#define open          _open
+#define fdopen        _fdopen
+#else
+#include <stdint.h>
+#include <stdbool.h>
 #endif
 
 typedef struct {