Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
3.2KB

  1. diff --git a/build_windows/db.h b/build_windows/db.h
  2. index 31d7775..00ec457 100644
  3. --- a/build_windows/db.h
  4. +++ b/build_windows/db.h
  5. @@ -133,7 +133,7 @@ typedef u_int32_t uintptr_t;
  6. typedef int64_t off_t;
  7. typedef int32_t pid_t;
  8. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  9. -typedef u_int32_t db_size_t;
  10. +typedef u_int64_t db_size_t;
  11. #else
  12. typedef size_t db_size_t;
  13. #endif
  14. @@ -143,7 +143,7 @@ typedef int64_t ssize_t;
  15. typedef int32_t ssize_t;
  16. #endif
  17. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  18. -typedef int32_t db_ssize_t;
  19. +typedef int64_t db_ssize_t;
  20. #else
  21. typedef ssize_t db_ssize_t;
  22. #endif
  23. diff --git a/build_windows/db_int.h b/build_windows/db_int.h
  24. index b1453d5..d78e52e 100644
  25. --- a/build_windows/db_int.h
  26. +++ b/build_windows/db_int.h
  27. @@ -196,9 +196,11 @@ typedef SH_TAILQ_HEAD(__hash_head) DB_HASHTAB;
  28. * HAVE_MIXED_SIZE_ADDRESSING is defined.
  29. */
  30. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  31. -#define DB_ALIGN8 __declspec(align(8))
  32. +#define DB_ALIGN8_BEFORE __declspec(align(8))
  33. +#define DB_ALIGN8_AFTER
  34. #else
  35. -#define DB_ALIGN8
  36. +#define DB_ALIGN8_BEFORE
  37. +#define DB_ALIGN8_AFTER
  38. #endif
  39. /*
  40. diff --git a/src/dbinc/db.in b/src/dbinc/db.in
  41. index 92ac822..7722ed1 100644
  42. --- a/src/dbinc/db.in
  43. +++ b/src/dbinc/db.in
  44. @@ -105,13 +105,13 @@ extern "C" {
  45. @pid_t_decl@
  46. @size_t_decl@
  47. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  48. -typedef u_int32_t db_size_t;
  49. +typedef u_int64_t db_size_t;
  50. #else
  51. typedef size_t db_size_t;
  52. #endif
  53. @ssize_t_decl@
  54. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  55. -typedef int32_t db_ssize_t;
  56. +typedef int64_t db_ssize_t;
  57. #else
  58. typedef ssize_t db_ssize_t;
  59. #endif
  60. diff --git a/src/dbinc/db_int.in b/src/dbinc/db_int.in
  61. index eae85c9..e3da14c 100644
  62. --- a/src/dbinc/db_int.in
  63. +++ b/src/dbinc/db_int.in
  64. @@ -195,9 +195,11 @@ typedef SH_TAILQ_HEAD(__hash_head) DB_HASHTAB;
  65. * HAVE_MIXED_SIZE_ADDRESSING is defined.
  66. */
  67. #ifdef HAVE_MIXED_SIZE_ADDRESSING
  68. -#define DB_ALIGN8 @DB_STRUCT_ALIGN8@
  69. +#define DB_ALIGN8_BEFORE
  70. +#define DB_ALIGN8_AFTER @DB_STRUCT_ALIGN8@
  71. #else
  72. -#define DB_ALIGN8
  73. +#define DB_ALIGN8_BEFORE
  74. +#define DB_ALIGN8_AFTER
  75. #endif
  76. /*
  77. diff --git a/src/dbinc/mp.h b/src/dbinc/mp.h
  78. index e00055f..c4a9e87 100644
  79. --- a/src/dbinc/mp.h
  80. +++ b/src/dbinc/mp.h
  81. @@ -573,7 +573,7 @@ struct __bh { /* SHARED */
  82. * (We guarantee size_t alignment to applications in the documentation,
  83. * too.)
  84. */
  85. - DB_ALIGN8 u_int8_t buf[1]; /* Variable length data. */
  86. + DB_ALIGN8_BEFORE u_int8_t buf[1] DB_ALIGN8_AFTER; /* Variable length data. */
  87. };
  88. /*
  89. diff --git a/src/dbinc/txn.h b/src/dbinc/txn.h
  90. index 9b04727..7943f5f 100644
  91. --- a/src/dbinc/txn.h
  92. +++ b/src/dbinc/txn.h
  93. @@ -47,7 +47,7 @@ struct __txn_logrec; typedef struct __txn_logrec DB_TXNLOGREC;
  94. * except for any pointer fields that are filled in only when the struct is
  95. * being populated for output through the API.
  96. */
  97. -DB_ALIGN8 struct __db_txn_stat_int { /* SHARED */
  98. +DB_ALIGN8_BEFORE struct __db_txn_stat_int { /* SHARED */
  99. u_int32_t st_nrestores; /* number of restored transactions
  100. after recovery. */
  101. #ifndef __TEST_DB_NO_STATISTICS
  102. @@ -67,7 +67,7 @@ DB_ALIGN8 struct __db_txn_stat_int { /* SHARED */
  103. uintmax_t st_region_nowait; /* Region lock granted without wait. */
  104. roff_t st_regsize; /* Region size. */
  105. #endif
  106. -};
  107. +} DB_ALIGN8_AFTER;
  108. /*
  109. * Internal data maintained in shared memory for each transaction.