mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
stop using leading underscores in macro names
Underscored macros are reserved for the compiler / standard lib / etc. Stop using them in user code. We used them as header guards in `src` and in `__FILESIZE` in `example`. Closes #1248
This commit is contained in:
@ -30,9 +30,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define __FILESIZE "I64u"
|
||||
#define LIBSSH2_FILESIZE_MASK "I64u"
|
||||
#else
|
||||
#define __FILESIZE "llu"
|
||||
#define LIBSSH2_FILESIZE_MASK "llu"
|
||||
#endif
|
||||
|
||||
static const char *pubkey = "/home/username/.ssh/id_rsa.pub";
|
||||
@ -208,7 +208,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if(attrs.flags & LIBSSH2_SFTP_ATTR_SIZE) {
|
||||
printf("%8" __FILESIZE " ", attrs.filesize);
|
||||
printf("%8" LIBSSH2_FILESIZE_MASK " ", attrs.filesize);
|
||||
}
|
||||
|
||||
printf("%s\n", mem);
|
||||
|
Reference in New Issue
Block a user