Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix colliding POST_PACKED_STRUCTURE definition #7

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion example-clients/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ main (int argc, char *argv[])
return 1;
}

if (argc < 3) show_usage(my_name);
if (argc < 3) {
show_usage(my_name);
return 1;
}

/* try to become a client of the JACK server */

Expand Down
4 changes: 1 addition & 3 deletions posix/JackCompilerDeps_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#if (__GNUC__< 4) /* Does not seem to work with GCC 3.XX serie */
#define POST_PACKED_STRUCTURE
#elif defined(JACK_32_64)
#define POST_PACKED_STRUCTURE __attribute__((__packed__))
#else
#define POST_PACKED_STRUCTURE
#define POST_PACKED_STRUCTURE __attribute__((__packed__))
#endif
#endif
#define MEM_ALIGN(x,y) x __attribute__((aligned(y)))
Expand Down