com php-src: catch up with libmagic.orig: ext/fileinfo/libmagic/cdf.h ext/fileinfo/libmagic/readcdf.c
| From: | Anatol Belski | Date: | Sun, 29 Mar 2015 16:11:11 +0000 |
| Subject: | com php-src: catch up with libmagic.orig: ext/fileinfo/libmagic/cdf.h ext/fileinfo/libmagic/readcdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85928@lists.php.net to get a copy of this message | ||
Commit: f51d78a35d50cb0e4ffdc30f077ffd85318944e6
Author: Anatol Belski <ab@php.net> Sun, 29 Mar 2015 18:11:11 +0200
Parents: 662c439087504c111f695fe964a3b50319d62141
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f51d78a35d50cb0e4ffdc30f077ffd85318944e6
Log:
catch up with libmagic.orig
that'll simplify future merges
Changed paths:
M ext/fileinfo/libmagic/cdf.h
M ext/fileinfo/libmagic/readcdf.c
Diff:
diff --git a/ext/fileinfo/libmagic/cdf.h b/ext/fileinfo/libmagic/cdf.h
index c35fb41..9006a68 100644
--- a/ext/fileinfo/libmagic/cdf.h
+++ b/ext/fileinfo/libmagic/cdf.h
@@ -57,10 +57,9 @@ typedef int32_t cdf_secid_t;
#define CDF_SECID_SECTOR_ALLOCATION_TABLE -3
#define CDF_SECID_MASTER_SECTOR_ALLOCATION_TABLE -4
-# define CDF_MAGIC 0xE11AB1A1E011CFD0LL
-
typedef struct {
uint64_t h_magic;
+#define CDF_MAGIC 0xE11AB1A1E011CFD0LL
uint64_t h_uuid[2];
uint16_t h_revision;
uint16_t h_version;
diff --git a/ext/fileinfo/libmagic/readcdf.c b/ext/fileinfo/libmagic/readcdf.c
index d38f36e..f6ed9c9 100644
--- a/ext/fileinfo/libmagic/readcdf.c
+++ b/ext/fileinfo/libmagic/readcdf.c
@@ -86,11 +86,7 @@ static const struct cv {
const char *mime;
} clsid2mime[] = {
{
-#ifdef PHP_WIN32
- { 0x00000000000c1084ui64, 0x46000000000000c0ui64 },
-#else
- { 0x00000000000c1084LLU, 0x46000000000000c0LLU },
-#endif
+ { 0x00000000000c1084ULL, 0x46000000000000c0ULL },
"x-msi",
},
{ { 0, 0 },
@@ -98,11 +94,7 @@ static const struct cv {
}
}, clsid2desc[] = {
{
-#ifdef PHP_WIN32
- { 0x00000000000c1084ui64, 0x46000000000000c0ui64 },
-#else
- { 0x00000000000c1084LLU, 0x46000000000000c0LLU },
-#endif
+ { 0x00000000000c1084ULL, 0x46000000000000c0ULL },
"MSI Installer",
},
{ { 0, 0 },
@@ -219,8 +211,8 @@ cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info,
case CDF_FILETIME:
tp = info[i].pi_tp;
if (tp != 0) {
- char tbuf[64];
- if (tp < 1000000000000000LL) {
+ char tbuf[64];
+ if (tp < 1000000000000000LL) {
cdf_print_elapsed_time(tbuf,
sizeof(tbuf), tp);
if (NOTMIME(ms) && file_printf(ms,