* details.
*
* You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
*/
#ifdef HAVE_CONFIG_H
if (new->file_on_disk == NULL)
goto out_free;
break;
-#ifdef __WIN32__
+#ifdef _WIN32
case BLOB_IN_WINDOWS_FILE:
new->windows_file = clone_windows_file(old->windows_file);
break;
(void*)&blob->attached_buffer);
FREE(blob->file_on_disk);
break;
-#ifdef __WIN32__
+#ifdef _WIN32
case BLOB_IN_WINDOWS_FILE:
free_windows_file(blob->windows_file);
break;
/* Compare files by path: just a heuristic that will place files
* in the same directory next to each other. */
return tstrcmp(blob1->file_on_disk, blob2->file_on_disk);
-#ifdef __WIN32__
+#ifdef _WIN32
case BLOB_IN_WINDOWS_FILE:
return cmp_windows_files(blob1->windows_file, blob2->windows_file);
#endif
/* SHA-1 message digest of the uncompressed data of this blob, or all
* zeroes if this blob is of zero length. */
u8 hash[SHA1_HASH_SIZE];
-} _packed_attribute;
+} __attribute__((packed));
/* Given a nonempty run of consecutive blob descriptors with the SOLID flag set,
* count how many specify resources (as opposed to blobs within those